Skip to content

Merge pull request #4 from arnvjshi/test #2

Merge pull request #4 from arnvjshi/test

Merge pull request #4 from arnvjshi/test #2

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: |
if npm run -s test ; then
echo "Tests passed"
else
echo "No tests or tests failed" && exit 1
fi