Skip to content

Commit

Permalink
Make tests use new builds & build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed May 1, 2024
1 parent 6d329fa commit 17846ca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/autoBuildDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "dev"

jobs:
build:
Build:
strategy:
matrix:
runs-on: [linux, windows]
Expand All @@ -27,8 +27,8 @@ jobs:
with:
path: ./build/*

download:
needs: upload
Release:
needs: Build
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/autoTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,27 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: "Install dependencies"
run: |
npm install
run: npm install
- name: "Compile & Sanity Test"
run: |
npm run testESM
run: npm run test-esm

Binary:
name: "Build & Sanity Check Linux Binary"
runs-on: "ubuntu-latest"
strategy:
matrix:
runs-on: [linux, windows]
name: "Build & Sanity Check ${{ matrix.runs-on }} Binary"
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: "Install dependencies"
run: |
npm install
run: npm install
- name: "Build & Sanity Test"
run: |
npm run testBinaryLinux
run: npm run test-${{ matrix.runs-on }}

eslint:
name: eslint
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"bundle": "npm run tsc && esbuild ./src/float.ts --bundle --platform=node --outfile=./dist/float.cjs",
"checkLint": "eslint ./src",
"lint": "eslint ./src --fix",
"sanity": "npm run checkLint && npm run testESM && npm run testBinaryWin",
"testESM": "tsc && node ./dist/float.js --sanityCheck",
"testBinaryLinux": "npm run build && ./build/float-linux --sanityCheck",
"testBinaryWin": "npm run build && cd ./build/float-win.exe --sanityCheck",
"sanity": "npm run checkLint && npm run test-esm && npm run test-windows",
"test-esm": "tsc && node ./dist/float.js --sanityCheck",
"test-linux": "npm run build-linux && ./build/float-linux --sanityCheck",
"test-windows": "npm run build-windows && cd ./build/float-win.exe --sanityCheck",
"makeBlob": "node --experimental-sea-config ./sea-config.json",
"makeBin": "node make.js",
"injectWin": "npx postject ./build/float-win.exe NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --overwrite",
Expand Down

0 comments on commit 17846ca

Please sign in to comment.