Skip to content

Commit

Permalink
build: set up pipeline and fix package dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
congweibai committed Aug 12, 2024
1 parent aadf6da commit e9594b5
Show file tree
Hide file tree
Showing 10 changed files with 2,666 additions and 4,311 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pr_unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

name: Run Automate Test on every Pull Request
jobs:
build:
name: Run Automate
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Use Node.js 18.20.4
uses: actions/setup-node@v1
with:
node-version: 18.20.4
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Install Dependencies
if: steps.cache-modules.outputs.cache-hit != 'true'
run: npm install
- name: Run test
run: npm test
Loading

0 comments on commit e9594b5

Please sign in to comment.