Skip to content

Commit

Permalink
New workflow to compile / test the code on each push and PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mthh committed Jul 30, 2024
1 parent ea67ddb commit 0d383e8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/compile-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Compile and test the code

on:
push:
branches:
- *
pull_request:
branches:
- main
- dev

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Compile code
run: npm run build

# - name: Run tests
# run: npm run test

0 comments on commit 0d383e8

Please sign in to comment.