Skip to content

Commit

Permalink
chore(ci): reconfigure GHA to run tests on NW.js Node version
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Apr 12, 2024
1 parent 5ff6477 commit 9461a86
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: v3-cd
name: v3
on:
push:
branches:
Expand All @@ -14,13 +14,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Get Node version from Node manifest
run: echo "NODE_VER=$(curl -s https://nwjs.io/versions | jq -r ".versions[0].components.node")" >> $GITHUB_ENV
- name: Setup Node
uses: actions/[email protected]
with:
node-version: "20.5.1"
node-version: ${{ env.NODE_VER }}
cache: "npm"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: npm ci
- name: Publish to npm
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: v3-ci
name: v3
on:
pull_request:
branches:
- v3
workflow_dispatch:
branches:
- v3

concurrency:
group: ${{ github.ref }}
Expand All @@ -15,20 +12,22 @@ jobs:
e2e:
strategy:
matrix:
os: [macos-13, ubuntu-22.04, windows-2022]
node: [16, 18, 20]
os:
- macos-13
- ubuntu-22.04
- windows-2022
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Get Node version from Node manifest
run: echo "NODE_VER=$(curl -s https://nwjs.io/versions | jq -r ".versions[0].components.node")" >> $GITHUB_ENV
- name: Setup Node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
node-version: ${{ env.NODE_VER }}
cache: "npm"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: npm ci
- name: Check for linting errors
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/rel.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: release-please
on:
push:
branches:
Expand All @@ -7,8 +8,6 @@ permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-22.04
Expand All @@ -17,4 +16,4 @@ jobs:
uses: google-github-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: v3
target-branch: v3
File renamed without changes.
3 changes: 2 additions & 1 deletion .github/LICENSE → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2014 Steffen Müller
Copyright (c) 2021-2023 NW.js Utilities
Copyright (c) 2014-2021 Steffen Müller

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@
"winston": "^3.11.0",
"yargs": "^17.7.2"
},
"packageManager": "npm@9.8.1"
"packageManager": "npm@10.5.2"
}

0 comments on commit 9461a86

Please sign in to comment.