forked from Axosoft/nsfw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df54ec3
commit a4c11ff
Showing
1 changed file
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,67 +9,67 @@ name: Run Tests | |
|
||
jobs: | ||
|
||
linux-tests: | ||
name: "Linux Tests" | ||
strategy: | ||
matrix: | ||
container: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04"] | ||
node: [18, 20, 22] | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.container }} | ||
env: | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# linux-tests: | ||
# name: "Linux Tests" | ||
# strategy: | ||
# matrix: | ||
# container: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04"] | ||
# node: [18, 20, 22] | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: ${{ matrix.container }} | ||
# env: | ||
# ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
check-latest: true | ||
# - name: Use Node.js ${{ matrix.node }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ matrix.node }} | ||
# check-latest: true | ||
|
||
- name: Install Ubuntu dependencies | ||
if: ${{ startsWith(matrix.container, 'ubuntu') }} | ||
run: | | ||
apt update && apt install -y software-properties-common && apt install -y git build-essential | ||
# - name: Install Ubuntu dependencies | ||
# if: ${{ startsWith(matrix.container, 'ubuntu') }} | ||
# run: | | ||
# apt update && apt install -y software-properties-common && apt install -y git build-essential | ||
|
||
- name: Install CentOS dependencies | ||
if: ${{ startsWith(matrix.container, 'centos') }} | ||
run: | | ||
yum install -y git gcc gcc-c++ make | ||
# - name: Install CentOS dependencies | ||
# if: ${{ startsWith(matrix.container, 'centos') }} | ||
# run: | | ||
# yum install -y git gcc gcc-c++ make | ||
|
||
- name: Run tests | ||
run: | | ||
npm install --global yarn | ||
yarn | ||
yarn test | ||
# - name: Run tests | ||
# run: | | ||
# npm install --global yarn | ||
# yarn | ||
# yarn test | ||
|
||
macos-tests: | ||
name: "MacOS Tests" | ||
strategy: | ||
matrix: | ||
node: [18, 20, 22] | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# macos-tests: | ||
# name: "MacOS Tests" | ||
# strategy: | ||
# matrix: | ||
# node: [18, 20, 22] | ||
# runs-on: macOS-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
check-latest: true | ||
# - name: Use Node.js ${{ matrix.node }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ matrix.node }} | ||
# check-latest: true | ||
|
||
- run: | | ||
npm install --global yarn | ||
yarn | ||
yarn test | ||
# - run: | | ||
# npm install --global yarn | ||
# yarn | ||
# yarn test | ||
|
||
windows-tests: | ||
name: "Windows Tests" | ||
strategy: | ||
matrix: | ||
node: [18, 20, 22] | ||
node: [18] | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -82,7 +82,7 @@ jobs: | |
|
||
- run: | | ||
npm install --global yarn | ||
npm install --global [email protected] | ||
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | ||
# npm install --global [email protected] | ||
# npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} | ||
yarn | ||
yarn test |