-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: set up pipeline and fix package dependency
- Loading branch information
1 parent
aadf6da
commit e9594b5
Showing
10 changed files
with
2,666 additions
and
4,311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.