Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
xinbenlv committed Jun 12, 2024
1 parent f49a8d2 commit 412cabb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Namefi Categorizer CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x] # Updated Node versions

steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn' # Specify yarn for caching

- name: Install dependencies
run: yarn install # Use yarn to install dependencies

- name: Run tests
run: yarn test # Use yarn to run tests

0 comments on commit 412cabb

Please sign in to comment.