mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-14 16:05:55 +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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -17,6 +20,8 @@ jobs:
|
|||||||
node-version: "14"
|
node-version: "14"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd backend && npm i
|
run: cd backend && npm i
|
||||||
|
- name: Test
|
||||||
|
run: cd backend && npm test
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd backend && npm run build
|
run: cd backend && npm run build
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
@ -25,5 +30,5 @@ jobs:
|
|||||||
git config user.email github-actions
|
git config user.email github-actions
|
||||||
git config user.name github-actions@github.com
|
git config user.name github-actions@github.com
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Release" -a
|
git commit -m "Build sub-store.min.js" -a
|
||||||
git push
|
git push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user