Skip to content

Commit

Permalink
Fix GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Munukutla <[email protected]>
  • Loading branch information
c16a committed Aug 24, 2024
1 parent 420fe71 commit 578119d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 34 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Rust
name: Merge

on:
push:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
name: Code Scan
Expand All @@ -26,24 +23,19 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: devskim-results.sarif
test:
name: Run Tests
bazel:
name: Bazel
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Run tests

- name: Test
run: bazelisk test //...
- name: Calculate coverage

- name: Coverage
run: bazelisk coverage //...
build:
name: Build
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v4

- name: Build
run: |
bazelisk build //...
run: bazelisk build //...
26 changes: 9 additions & 17 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Rust
name: Pull Request

on:
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
name: Code Scan
Expand All @@ -21,24 +18,19 @@ jobs:

- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1
test:
name: Run Tests
bazel:
name: Bazel
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Run tests

- name: Test
run: bazelisk test //...
- name: Calculate coverage

- name: Coverage
run: bazelisk coverage //...
build:
name: Build
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v4

- name: Build
run: |
bazelisk build //...
run: bazelisk build //...

0 comments on commit 578119d

Please sign in to comment.