Skip to content

Commit

Permalink
Merge pull request #10 from 1natsu172/1natsu172-patch-1
Browse files Browse the repository at this point in the history
add ci
  • Loading branch information
1natsu172 authored Aug 25, 2024
2 parents a9768e7 + 9fe2afa commit 3ba78f0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Run Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version-file: '.tool-versions'
cache: pnpm
- name: Install deps
run: pnpm install
- name: Check to build passed
run: pnpm run build
- name: Check to test passed
run: pnpm run test

0 comments on commit 3ba78f0

Please sign in to comment.