Skip to content

Merge pull request #574 from clearlydefined/elr/ver-sha #16

Merge pull request #574 from clearlydefined/elr/ver-sha

Merge pull request #574 from clearlydefined/elr/ver-sha #16

Workflow file for this run

name: Run Docker build and tests
on:
workflow_dispatch:
push:
branches:
- master
- prod
pull_request:
branches:
- master
- prod
permissions:
contents: read
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
docker-build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker build
run: docker build .