fix(#9): Implement CI-Workflow for Docker tests on push and PR
Some checks are pending
Docker Test / test (push) Waiting to run
Some checks are pending
Docker Test / test (push) Waiting to run
This commit is contained in:
parent
21e1a5f859
commit
153ac243d0
1 changed files with 23 additions and 0 deletions
23
.github/workflows/docker-test.yml
vendored
Normal file
23
.github/workflows/docker-test.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: Docker Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -f Dockerfile.test -t test-image .
|
||||||
|
|
||||||
|
- name: Run tests in container
|
||||||
|
run: |
|
||||||
|
docker run --rm test-image npm test
|
||||||
Loading…
Add table
Add a link
Reference in a new issue