1717 steps :
1818 - uses : actions/checkout@v5
1919
20- # We check that all github actions workflows have valid syntax
21- - name : Validate YAML file
22- uses : raven-actions/actionlint@v2
23- with :
24- files : .github/workflow/*
25- flags : " -ignore SC2086" # ignore some shellcheck errors
26-
2720 - name : install `just`
2821 run : sudo snap install --edge --classic just
2922
@@ -37,24 +30,14 @@ jobs:
3730 - name : Set up Docker Buildx
3831 uses : docker/setup-buildx-action@v3
3932
40- - name : Launch postgres
41- run : just _ensure_db_and_s3_are_running
42-
4333 - name : install SQLX CLI
4434 run : cargo binstall sqlx-cli
4535
46- - name : run database migrations
47- run : cargo sqlx migrate run --database-url $DOCSRS_DATABASE_URL
48-
49- - name : run sqlx prepare --check
50- run : just sqlx-prepare
51-
52- - name : test reverse migrations
36+ - name : run sqlx migration up & down
5337 run : |
54- # --target 0 means "revert everything"
55- cargo sqlx migrate revert \
56- --database-url $DOCSRS_DATABASE_URL \
57- --target-version 0
38+ just sqlx-migrate-run \
39+ sqlx-check \
40+ sqlx-migrate-revert
5841
5942 - name : shut down test environment
6043 if : ${{ always() }}
@@ -122,6 +105,7 @@ jobs:
122105 - run : just lint
123106
124107 lint-js :
108+ name : js linters
125109 runs-on : ubuntu-latest
126110 steps :
127111 - uses : actions/checkout@v5
@@ -132,3 +116,16 @@ jobs:
132116 run : sudo snap install --edge --classic just
133117
134118 - run : just lint-js
119+
120+ lint-actions :
121+ name : gh actions linters
122+ runs-on : ubuntu-latest
123+ steps :
124+ - uses : actions/checkout@v5
125+
126+ # We check that all github actions workflows have valid syntax
127+ - name : Validate YAML file
128+ uses : raven-actions/actionlint@v2
129+ with :
130+ files : .github/workflow/*
131+ flags : " -ignore SC2086" # ignore some shellcheck errors
0 commit comments