Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
Related Issues:
   - #16
  • Loading branch information
Bill2015 authored Feb 20, 2024
1 parent 6e80ea2 commit 2448350
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: TEST-CI

run-name: ${{ github.actor }} is running GitHub Actions

on:
push:
branches: [ "master", "Bill2015/*" ]
pull_request:
branches: [ "master" ]


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

# Run commands
- name: install deps
- run: npm ci
- run: npm run build --if-present

# Testing
- name: test the project
- run: npm test

0 comments on commit 2448350

Please sign in to comment.