-
Notifications
You must be signed in to change notification settings - Fork 48
54 lines (42 loc) · 1.11 KB
/
check.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
50
51
52
53
54
name: check
on:
pull_request:
push:
branches: main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: macos-latest
env:
MINT_PATH: ${{ github.workspace }}/mint
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Cache Mint packages
uses: actions/cache@v1
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Setup Scripts Directory
run: ./setup-scripts.sh
- name: Setup check
run: |
brew update
brew install clang-format@17
brew install mint
mint bootstrap
- name: Style
run: scripts/style.sh test-only
- name: Whitespace
run: scripts/check_whitespace.sh
- name: Filename spaces
run: scripts/check_filename_spaces.sh
- name: Copyrights
run: scripts/check_copyright.sh
- name: Imports
run: scripts/check_imports.swift