chore: 0812 npm audit (#221) #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - Master Staging Deploy | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Tests | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: npm | |
- run: cp .env.example .env | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run typecheck | |
- run: npm run test | |
- run: npm run sls-config-check | |
trigger-deploy-staging: | |
needs: test | |
name: Deploy Staging | |
runs-on: ubuntu-latest | |
steps: | |
- uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: ${{ secrets.NOTARISE_DEPLOYER_WORKFLOW }} | |
repo: ${{ secrets.NOTARISE_DEPLOYER_REPO }} | |
token: ${{ secrets.NOTARISE_REPO_TOKEN }} | |
inputs: '{ "ref": "${{ github.ref }}" }' |