ianlcz is running Affirmations CI on Node 14.x #4
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
# This workflow will do a clean install of node dependencies and run tests on node version 14.x | |
name: Affirmations CI | |
run-name: ${{ github.actor }} is running Affirmations CI on Node 14.x | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "14.x" | |
- name: Caching node modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Installing dependencies | |
run: npm i | |
- name: Building application | |
run: npm run build --if-present | |
- name: Running tests | |
run: npm test | |
env: | |
CI: true |