Compare commits
11 commits
Author | SHA1 | Date | |
---|---|---|---|
|
f0901ed56c | ||
|
cf63dff36b | ||
|
be8aee3fbf | ||
|
58c18827ca | ||
|
5fffdb88d2 | ||
|
4517d41e2b | ||
|
0d92cb7ed0 | ||
|
3e5dc8e733 | ||
|
4be921d5dd | ||
|
399713695e | ||
|
66ca7d32e5 |
3 changed files with 756 additions and 256 deletions
21
.github/workflows/docker-image.yml
vendored
21
.github/workflows/docker-image.yml
vendored
|
@ -6,18 +6,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
lint-test:
|
lint-test:
|
||||||
name: lint, build & test
|
name: lint, build & test
|
||||||
runs-on: ubuntu-latest
|
uses: './.github/workflows/lint-test.yml'
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: setup Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 18.x
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run lint
|
|
||||||
- run: npm run build
|
|
||||||
- run: npm test
|
|
||||||
|
|
||||||
build-and-publish:
|
build-and-publish:
|
||||||
name: build & publish Docker image
|
name: build & publish Docker image
|
||||||
|
@ -25,13 +14,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: check out the repo
|
- name: check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: set up QEMU
|
- name: set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
- name: configure Docker to use buildx
|
- name: configure Docker to use buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: log in to Docker Hub
|
- name: log in to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
@ -50,7 +39,7 @@ jobs:
|
||||||
|
|
||||||
# this is for the public-transport/infrastructure cluster
|
# this is for the public-transport/infrastructure cluster
|
||||||
- name: log in to GitHub Container Registry
|
- name: log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
|
|
35
.github/workflows/lint-test.yml
vendored
Normal file
35
.github/workflows/lint-test.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: lint, build & test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-test:
|
||||||
|
name: lint, build & test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version:
|
||||||
|
- '16.x'
|
||||||
|
- '18.x'
|
||||||
|
- '20.x'
|
||||||
|
- '22.x'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- run: npm ci
|
||||||
|
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run build
|
||||||
|
- run: npm test
|
956
package-lock.json
generated
956
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue