-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 1011 Bytes
/
lint.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: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint project
runs-on: ubuntu-latest
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dagger Zenith
run: |
git clone https://github.com/dagger/dagger dagger-zenith
cd ./dagger-zenith
./hack/dev
sudo mv ./bin/dagger /usr/local/bin
- name: Check Zenith Install
run: |
dagger version
- name: Sync modules
env:
_EXPERIMENTAL_DAGGER_RUNNER_HOST: "docker-container://dagger-engine:dev"
run: |
for f in *; do if [ -d $f ]; then sudo dagger mod sync --workdir $f; fi; done
- name: Run lint
env:
_EXPERIMENTAL_DAGGER_RUNNER_HOST: "docker-container://dagger-engine:dev"
run: |
cd ci
sudo dagger call lint