From cb8cfbcbf181e2d3a138d5194b0181b008addce5 Mon Sep 17 00:00:00 2001 From: talmobi Date: Thu, 26 Sep 2024 21:51:19 +0300 Subject: [PATCH] chore: add macos and windows gha --- .github/workflows/macos-node.js.yml | 33 +++++++++++++++++++++++++++ .github/workflows/ubuntu-node.js.yml | 2 +- .github/workflows/windows-node.js.yml | 33 +++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/macos-node.js.yml create mode 100644 .github/workflows/windows-node.js.yml diff --git a/.github/workflows/macos-node.js.yml b/.github/workflows/macos-node.js.yml new file mode 100644 index 0000000..69d1c82 --- /dev/null +++ b/.github/workflows/macos-node.js.yml @@ -0,0 +1,33 @@ +name: macos + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: macos-latest + + strategy: + matrix: + node-version: [20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Workaround to create TTY + run: | + npm install + npm run build --if-present + script -q -c "npm test" + diff --git a/.github/workflows/ubuntu-node.js.yml b/.github/workflows/ubuntu-node.js.yml index 790f14d..4b5eb90 100644 --- a/.github/workflows/ubuntu-node.js.yml +++ b/.github/workflows/ubuntu-node.js.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: ubuntu on: push: diff --git a/.github/workflows/windows-node.js.yml b/.github/workflows/windows-node.js.yml new file mode 100644 index 0000000..cb379e6 --- /dev/null +++ b/.github/workflows/windows-node.js.yml @@ -0,0 +1,33 @@ +name: windows + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: windows-latest + + strategy: + matrix: + node-version: [20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Workaround to create TTY + run: | + npm install + npm run build --if-present + script -q -c "npm test" +