Skip to content

Commit 3ee89bd

Browse files
authored
Merge pull request #6 from TrilonIO/thiagomini-patch-1
chore: create node-ci.yml
2 parents 0495f2d + ae40dab commit 3ee89bd

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/node-ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
name: Node.js CI
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [18.x, 20.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'yarn' # Change cache to yarn
26+
- name: Install Yarn
27+
run: npm install -g yarn
28+
- run: yarn install --immutable # Replace npm ci with yarn install
29+
- run: yarn test
30+
- run: yarn lint

0 commit comments

Comments
 (0)