Skip to content

Commit

Permalink
Merge pull request #24 from script3/fix-docker-ci
Browse files Browse the repository at this point in the history
ci: add npm build step before docker buildx
  • Loading branch information
mootz12 authored Oct 3, 2024
2 parents 276f8e6 + 155d85a commit f4ea874
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ on:
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build

- name: Run tests
run: npm run test
- name: Run tests
run: npm run test

0 comments on commit f4ea874

Please sign in to comment.