Skip to content

ci: configure webapp docker #69

ci: configure webapp docker

ci: configure webapp docker #69

Workflow file for this run

name: Continuous Integration Webapp
defaults:
run:
working-directory: webapp
on:
push:
paths:
- 'webapp/**'
branches: [ "main" ]
pull_request:
paths:
- 'webapp/**'
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
packages: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'webapp/.nvmrc'
cache: 'npm'
cache-dependency-path: 'webapp/package-lock.json'
- run: npm clean-install
- run: npm run lint
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'webapp/.nvmrc'
cache: 'npm'
cache-dependency-path: 'webapp/package-lock.json'
- run: npm clean-install
- run: npm test
build:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'webapp/.nvmrc'
cache: 'npm'
cache-dependency-path: 'webapp/package-lock.json'
- run: npm clean-install
- run: npm run build
- name: Store build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: dist/webapp/