Skip to content

Commit

Permalink
chore: use node 16 because of tap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Apr 23, 2024
1 parent f269dfe commit 41e2959
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 45 deletions.
44 changes: 18 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,41 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 16

- name: Install Dependencies
run: |
npm install
env:
CI: true
run: npm install

- name: Lint Files
run: |
npm run lint:check
env:
CI: true
run: npm run lint:check

- name: Check File Formatting
run: |
npm run format:check
env:
CI: true
run: npm run format:check

- name: Run Tests
run: |
npm run test:ci
env:
CI: true
run: npm run test:ci

release:
name: Release
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20

- name: Install Dependencies
run: |
npm install
run: npm install

- name: Run Semantic Release
run: |
npx semantic-release
run: npx semantic-release
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
32 changes: 13 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,24 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [14.x, 16.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: |
npm install
env:
CI: true
run: npm install

- name: Lint Files
run: |
npm run lint:check
env:
CI: true
run: npm run lint:check

- name: Check File Formatting
run: |
npm run format:check
env:
CI: true
run: npm run format:check

- name: Run Tests
run: |
npm run test:ci
env:
CI: true
run: npm run test:ci
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16

0 comments on commit 41e2959

Please sign in to comment.