-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (43 loc) · 1.07 KB
/
ci.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
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 1 * * 1' # At 01:00 on Monday
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false
matrix:
ci_step: [
"lint",
"test",
]
include:
- ci_step: "lint"
command: "crust lint"
- ci_step: "test"
command: "crust test"
runs-on: self-hosted
steps:
- name: Go version used to build builder
run: go version
- name: Checkout crust
uses: actions/checkout@v4
with:
persist-credentials: false
path: crust
- name: Set up build system
run: |
echo "$(pwd)/crust/bin" >> $GITHUB_PATH
crust/bin/crust build/me
- name: Retrieve go version
id: goversion
run: echo "GO_VERSION=$(go version)" >> $GITHUB_OUTPUT
- name: Print go version
run: echo ${{ steps.goversion.outputs.GO_VERSION }}
- name: Run ${{ matrix.ci_step }}
run: ${{ matrix.command }}