Skip to content

Commit

Permalink
Changed CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
LCcodder committed May 29, 2024
1 parent c28073c commit 732f9ab
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: Run Jest unit tests
name: Run tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
container: node:20
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- run: npm i
tests:
runs-on: ubuntu-latest
steps:
- run: npm test
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 ci
- run: npm test

0 comments on commit 732f9ab

Please sign in to comment.