Skip to content

Commit

Permalink
Separate build and test workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
imeyer committed Sep 12, 2023
1 parent 93e05e4 commit e53a531
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 21 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build
on:
push:
branches: main
paths:
- "!README.md"
workflow_run:
workflows: ["Test"]
types: [requested]
branches:
- "releases/**"

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out tdiscuss
uses: actions/checkout@v3
- name: Build //cmd/tdiscuss
run: |
bazelisk build //cmd/tdiscuss:tdiscuss
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
run-name: Test
on:
push:
pull_request:
paths:
- "!README.md"

jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Check out tdiscuss
uses: actions/checkout@v3
- name: Test //pkg/...
run: |
bazelisk test //pkg/...
21 changes: 0 additions & 21 deletions .github/workflows/workflows.yml

This file was deleted.

0 comments on commit e53a531

Please sign in to comment.