Skip to content

Commit

Permalink
Create BuildTest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaopan committed Jun 9, 2024
1 parent 467a145 commit 15987ea
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/BuildTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: BuildTest

on:
push:
branches:
- master
workflow_dispatch:
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build

- name: Install node
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test

- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down

0 comments on commit 15987ea

Please sign in to comment.