Skip to content

bash script using flyctl and terraform to set up dev.johan.li #46

bash script using flyctl and terraform to set up dev.johan.li

bash script using flyctl and terraform to set up dev.johan.li #46

Workflow file for this run

name: 'Tests'
on:
push:
workflow_dispatch:
jobs:
deploy:
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v3
with:
lfs: true
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- run: npm ci
- run: npm run tsc
- name: Run unit tests
run: npm test
- run: npx playwright install --with-deps
- name: Run end-to-end tests
run: npm run test:e2e