2022-08-08 02:33:59 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
# - '!main'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_and_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2023-07-02 02:48:35 +00:00
|
|
|
node-version: 18
|
2022-08-08 02:33:59 +00:00
|
|
|
- run: npm ci --no-optional
|
|
|
|
- run: npm test
|
|
|
|
|
|
|
|
- name: 'Build web app artifacts'
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: build-output
|
|
|
|
path: build
|