-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.04 KB
/
ci.yaml
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
50
# Copyright (c) 2022 MobileCoin Inc.
name: ci
on:
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
pull-requests: write
contents: read
jobs:
lint-shell:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run shellcheck with reviewdog
uses: reviewdog/action-shellcheck@v1
with:
fail_on_error: true
reporter: github-pr-review
lint-actions:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run actionlint with reviewdog
uses: reviewdog/action-actionlint@v1
with:
fail_on_error: true
reporter: github-pr-review
# Have one noop job at the end that passes if all the other checks pass.
# This is so we can just have one "standard" check to add to the branch protections.
workflow-ok:
needs:
- lint-shell
- lint-actions
runs-on: ubuntu-22.04
steps:
- name: All Checks OK!
run: |
true