-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (49 loc) · 1.39 KB
/
build.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
51
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
inn-docker:
strategy:
fail-fast: false
matrix:
service-image: [cclauss/inn] # , greenbender/inn]
runs-on: ubuntu-latest
services:
inn-service:
image: ${{ matrix.service-image }}
ports:
- 119:119
- 563:563
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13
allow-prereleases: true
- run: pip install --upgrade pip
- run: pip install pydantic pynntp pytest
- run: pytest
- run: python src/nntp_io.py
- run: python src/nntplib_tests.py || true
front-end:
strategy:
fail-fast: false
matrix:
node-version: [18.19.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: cd fe2 && npm ci || npm install
- run: cd fe2 && npm run # To see available commands
# TODO(@KevinEverywhere): Set up eslint/config and then remove `|| true`
- run: cd fe2 && yes | npm init @eslint/config
- run: cd fe2 && npm run lint:scss || true
- run: cd fe2 && npm run lint:ts || true
- run: cd fe2 && npm run unit