Skip to content

point to Dockerfile test #3

point to Dockerfile test

point to Dockerfile test #3

Workflow file for this run

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.