Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Migrate to npm workspaces #34

Migrate to npm workspaces

Migrate to npm workspaces #34

Workflow file for this run

name: server
on:
push:
paths:
- ".github/workflows/server.yaml"
- "server/**"
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 20
strategy:
matrix:
node-version: [16]
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: "Install dependencies"
run: npm ci
- name: "Lint"
run: npm run lint
working-directory: server
- name: "Build"
run: npm run build
working-directory: server
- name: "Test"
run: npm run test -- --verbose
working-directory: server
- name: "Retrieve env for dev environment"
if: github.ref == 'refs/heads/master'
run: echo "$DEV_ENV" > server/src/env/dev.ts
env:
DEV_ENV: ${{ secrets.DEV_ENV }}
- name: "Deploy to dev environment"
if: github.ref == 'refs/heads/master'
run: npm run deploy:dev
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
working-directory: server