-
-
Notifications
You must be signed in to change notification settings - Fork 271
36 lines (29 loc) · 856 Bytes
/
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
name: "CI"
on:
pull_request:
branches:
- "*"
push:
branches:
- "main"
- "master"
schedule:
- cron: "30 12 * * *"
jobs:
test:
runs-on: "ubuntu-22.04"
steps:
- uses: "actions/checkout@v4"
- name: "Install CI dependencies"
run: |
./run ci:install-deps
- name: "Test"
run: |
# Remove volumes in CI to avoid permission errors due to UID / GID.
sed -i "s|.:/app|/tmp:/tmp|g" .env*
sed -i "s|.:/app|/tmp:/tmp|g" compose.yaml
# Django requires static files to be collected in order to run its
# test suite. That means we need to generate production assets from
# esbuild. This line ensures NODE_ENV is set to production.
sed -i "s|export NODE_ENV|#export NODE_ENV|g" .env*
./run ci:test