Skip to content

Bump

Bump #153

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ./frontend
- run: npm run build-only --if-present
working-directory: ./frontend
# - run: npm run build --if-present
# working-directory: ./frontend
# - run: npm test
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.5.x
lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=./frontend/dist || echo "LHCI failed!"
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}