-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 993 Bytes
/
merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Rust
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Code Scan
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1
- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: devskim-results.sarif
test:
name: Run Tests
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Run tests
run: bazelisk test //...
- name: Calculate coverage
run: bazelisk coverage //...
build:
name: Build
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Build
run: |
bazelisk build //...