Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmesa-gitkraken committed Jul 5, 2024
1 parent df54ec3 commit a4c11ff
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit a4c11ff

Please sign in to comment.