-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (50 loc) · 1.19 KB
/
build-and-test.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
46
47
48
49
50
name: build-and-test
on: [push]
jobs:
js:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [20.x]
name: Node ${{ matrix.node }} run
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install npm modules
run: npm install
- name: eslint
run: npm run eslint
- name: build
run: npm run build
- name: test
run: npm test
django:
name: Django tests
runs-on: ubuntu-24.04
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
strategy:
matrix:
python-version: ["3.12"]
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run flake8
run: make flake8
- name: Run django tests
run: make test