-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.01 KB
/
check.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
51
52
53
54
55
name: Check
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup aqua
uses: aquaproj/aqua-installer@v3.0.1
with:
aqua_version: v2.28.0
- name: Dump ".mise.toml"
id: dump_mise_toml
run: |
{
echo 'mise_toml<<EOF'
cat .mise.toml
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Setup mise
uses: jdx/mise-action@v2
with:
version: 2024.5.16
install: true
cache: true
mise_toml: ${{ steps.dump_mise_toml.outputs.mise_toml }}
- name: Run check
run: task check
- name: Try compile
run: task compile