Skip to content

Commit

Permalink
Extract Windows to separate job
Browse files Browse the repository at this point in the history
Service containers are not supported on Windows runnners.
  • Loading branch information
textbook committed Aug 24, 2024
1 parent 2f0acff commit bd2553a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ on:
branches: [main]

jobs:
windows:
runs-on: windows-latest
steps:
- uses: textbook/take-action@nodejs
with:
node-version: 20
- run: npm run lint
- run: npm run test:cover
env:
FORCE_COLOR: true
nodejs:
strategy:
matrix:
node: [20.9, 20, 22]
os: [ubuntu-latest]
include:
- node: 22
os: windows-latest
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
services:
postgres:
image: postgres
Expand Down Expand Up @@ -95,9 +101,7 @@ jobs:
deploy:
uses: "./.github/workflows/deploy.yml"
if: github.ref == 'refs/heads/main'
needs:
- docker
- nodejs
needs: [docker, nodejs, windows]
with:
environment: heroku
secrets:
Expand Down

0 comments on commit bd2553a

Please sign in to comment.