forked from MITIH-Dreamlab/JingSpringThing
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 896 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI Pipeline
on:
push:
branches: [ feature-branch ] # Adjust branch name as needed.
pull_request:
branches: [ feature-branch ]
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
docker:
image: docker:dind
options: >-
--privileged
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker Image for Tests
run: |
docker build -t my-app-test -f /webxr-graph/Dockerfile.test .
- name: Run Lint Test in Docker Container
run: |
docker run --rm my-app-test npm run lint
- name: Run Unit Tests in Docker Container (Optional)
run: |
docker run --rm my-app-test npm test # Uncomment if you want to run unit tests too.