Skip to content

Commit

Permalink
Add GitHub actions CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Swafox committed Apr 5, 2024
1 parent 6e533e1 commit bd51798
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Node.js CI

on:
push:
branches: [main]

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
directory:
- BasicFunctions
- BlankProject
- SimpleCounter

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Install dependencies, Build, and Test
run: |
cd ${{ matrix.directory }}
npm ci
npm run build
npm run test

0 comments on commit bd51798

Please sign in to comment.