Skip to content

Commit

Permalink
chore: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafinhaa committed Nov 1, 2024
1 parent 10b7f4e commit 73d46aa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on: [push]
jobs:
build:
name: Build and test on Node ${{ matrix.node }} on Ubuntu

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["18.x"]
os: [ubuntu-latest]

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

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Test
run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"src"
],
"engines": {
"node": ">=18"
"node": ">=16"
},
"scripts": {
"start": "tsdx watch",
Expand Down

0 comments on commit 73d46aa

Please sign in to comment.