Skip to content

Commit

Permalink
test: attempt to fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tbjgolden committed Sep 18, 2024
1 parent 913bb3f commit 4c5fb00
Showing 1 changed file with 34 additions and 8 deletions.
42 changes: 34 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,56 @@ on:
- "**"

jobs:
build-and-test:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Build the project
run: npm run build

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: build-output
path: ./dist

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x]

needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build-output
path: ./dist

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
run: npm install

- name: Run tests
run: npm run test

- name: Build project
run: npm run build

- name: Check build
- name: Run build tests
run: npm run check-build

0 comments on commit 4c5fb00

Please sign in to comment.