Skip to content

Merge pull request #9 from anephenix/dependabot/npm_and_yarn/prettier… #26

Merge pull request #9 from anephenix/dependabot/npm_and_yarn/prettier…

Merge pull request #9 from anephenix/dependabot/npm_and_yarn/prettier… #26

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
APP_ENV: test
NODE_ENV: test
CC_TEST_REPORTER_ID: 5dd2d0535f5715000be33a5a98876838adcf96520389bf9ababa1160acdf9dc4
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run build
- run: npm run lint
- name: Download Code Climate Test Reporter
run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- name: Make Test Reporter Executable
run: chmod +x ./cc-test-reporter
- name: Run Code Climate Test Reporter (Before Build)
run: ./cc-test-reporter before-build
- name: Run Tests with Coverage
run: npm run cover
- name: Run Code Climate Test Reporter (After Build)
run: ./cc-test-reporter after-build
if: github.event_name != 'pull_request'