Skip to content

Commit a45c954

Browse files
committed
update steps docker image build and test
1 parent c62d560 commit a45c954

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: Deploy Frontend
22

33
on:
44
push:
@@ -7,22 +7,15 @@ on:
77
branches: ['main']
88

99
jobs:
10-
build:
10+
docker-test:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1516

16-
- name: Set up Node.js
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: '22'
17+
- name: Build Docker image for testing
18+
run: docker build -t cygnetops/react-test -f Dockerfile.dev .
2019

21-
- name: Install dependencies
22-
run: npm ci
23-
24-
- name: Run build
25-
run: npm run build
26-
27-
- name: Run tests
28-
run: npm test
20+
- name: Run tests in Docker container
21+
run: docker run -e CI=true cygnetops/react-test npm test

0 commit comments

Comments
 (0)