mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-13 09:59:06 +08:00
feat: Added mocha test to GitHub action
This commit is contained in:
parent
8e0a942a6b
commit
89164c3e7a
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -3,6 +3,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@ -17,6 +20,8 @@ jobs:
|
||||
node-version: "14"
|
||||
- name: Install dependencies
|
||||
run: cd backend && npm i
|
||||
- name: Test
|
||||
run: cd backend && npm test
|
||||
- name: Build
|
||||
run: cd backend && npm run build
|
||||
- name: Commit changes
|
||||
@ -25,5 +30,5 @@ jobs:
|
||||
git config user.email github-actions
|
||||
git config user.name github-actions@github.com
|
||||
git add .
|
||||
git commit -m "Release" -a
|
||||
git commit -m "Build sub-store.min.js" -a
|
||||
git push
|
||||
|
Loading…
x
Reference in New Issue
Block a user