Skip to content

100 Days of Code - Day Twelve #43

100 Days of Code - Day Twelve

100 Days of Code - Day Twelve #43

Workflow file for this run

# This is a basic workflow for when submitting PRs to validate that everything is working
name: Staging Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
pull_request:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: NPM Install
run: |
npm install --no-audit
- name: Stage Build
run: |
CI="" npm run build
- name: Run Tests
run: |
npm run test --passWithNoTests