Skip to content

Commit

Permalink
Try fix release-node CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Dec 5, 2023
1 parent 11640ff commit 54f8a2f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/release-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Release Node
env:
DEBUG: napi:*
APP_NAME: autocorrect-node
MACOSX_DEPLOYMENT_TARGET: "10.13"
MACOSX_DEPLOYMENT_TARGET: '10.13'
on:
push:
tags:
- "v*"
- 'v*'
branches:
- "release-node"
- 'release-node'
defaults:
run:
working-directory: autocorrect-node
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
node-version: 16
check-latest: true
cache: yarn
cache-dependency-path: "autocorrect-node/yarn.lock"
cache-dependency-path: 'autocorrect-node/yarn.lock'
- name: Install
uses: actions-rs/toolchain@v1
if: ${{ !matrix.settings.docker }}
Expand Down Expand Up @@ -106,14 +106,14 @@ jobs:
node-version: 16
check-latest: true
cache: yarn
cache-dependency-path: "autocorrect-node/yarn.lock"
cache-dependency-path: 'autocorrect-node/yarn.lock'
architecture: x86
- name: Build in docker
uses: addnab/docker-run-action@v3
if: ${{ matrix.settings.docker }}
with:
image: ${{ matrix.settings.docker }}
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build"
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
run: ${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
Expand All @@ -136,8 +136,8 @@ jobs:
- host: windows-latest
target: x86_64-pc-windows-msvc
node:
- "16"
- "18"
- '16'
- '18'
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
Expand All @@ -147,7 +147,7 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
cache: yarn
cache-dependency-path: "autocorrect-node/yarn.lock"
cache-dependency-path: 'autocorrect-node/yarn.lock'
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
Expand All @@ -164,7 +164,7 @@ jobs:
run: ls -R .
shell: bash
- name: Test bindings
run: yarn test
run: yarn && yarn test
test-linux-x64-gnu-binding:
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
needs:
Expand All @@ -173,9 +173,9 @@ jobs:
fail-fast: false
matrix:
node:
- "14"
- "16"
- "18"
- '14'
- '16'
- '18'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -185,7 +185,7 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
cache: yarn
cache-dependency-path: "autocorrect-node/yarn.lock"
cache-dependency-path: 'autocorrect-node/yarn.lock'
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
Expand All @@ -202,7 +202,7 @@ jobs:
run: ls -R .
shell: bash
- name: Test bindings
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn && yarn test
test-linux-x64-musl-binding:
name: Test bindings on Linux-x64-musl - node@${{ matrix.node }}
needs:
Expand All @@ -211,9 +211,9 @@ jobs:
fail-fast: false
matrix:
node:
- "14"
- "16"
- "18"
- '14'
- '16'
- '18'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -223,7 +223,7 @@ jobs:
node-version: ${{ matrix.node }}
check-latest: true
cache: yarn
cache-dependency-path: "autocorrect-node/yarn.lock"
cache-dependency-path: 'autocorrect-node/yarn.lock'
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
Expand All @@ -240,7 +240,7 @@ jobs:
run: ls -R .
shell: bash
- name: Test bindings
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine yarn test
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine yarn && yarn test
publish:
name: Publish Node
runs-on: ubuntu-latest
Expand All @@ -257,7 +257,7 @@ jobs:
node-version: 16
check-latest: true
cache: yarn
cache-dependency-path: "autocorrect-node/yarn.lock"
cache-dependency-path: 'autocorrect-node/yarn.lock'
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ arrify@^3.0.0:
integrity sha512-tLkvA81vQG/XqE2mjDkGQHoOINtMHtysSnemrmoGe6PydDPMRbVugqyk4A6V/WDWEfm3l+0d8anA9r8cv/5Jaw==

"autocorrect-node@file:autocorrect-node":
version "2.8.5"
version "2.9.0"

ava@^4.3.3:
version "4.3.3"
Expand Down

0 comments on commit 54f8a2f

Please sign in to comment.