Skip to content

Resolves #207 - Adding automated tests to CI #7

Resolves #207 - Adding automated tests to CI

Resolves #207 - Adding automated tests to CI #7

Workflow file for this run

on:
push:
branches:
- master
- main
pull_request:
name: CI
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'npm'
- name: Print environment
run: |
node --version
npm --version
- name: Install Node dependencies
run: npm ci
- name: Code Style
run: npm run cs-check
- name: Lint
run: npm run lint
test:
runs-on: ubuntu-latest
env:
TEST_TAG: user/app:test
steps:
- uses: actions/checkout@v4
- name: Build container
uses: docker/build-push-action@v5
with:
tags: ${{ env.TEST_TAG }}
file: Dockerfile
load: true
context: .
- name: Run container
run: |
docker run --rm ${{ env.TEST_TAG }} && sleep 5