Skip to content

Commit

Permalink
Merge pull request #499 from phanect/feat-gha
Browse files Browse the repository at this point in the history
Add GitHub Actions
  • Loading branch information
prototypa authored Aug 29, 2024
2 parents fcc9e20 + d067c80 commit 4254a60
Show file tree
Hide file tree
Showing 3 changed files with 2,777 additions and 669 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: GitHub Actions

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18
- 20
- 22
steps:
- uses: actions/checkout@v4
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run build
# - run: npm test

check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check
Loading

0 comments on commit 4254a60

Please sign in to comment.