Skip to content

Commit

Permalink
feat: revert to node 16 (#36)
Browse files Browse the repository at this point in the history
Github actions yaml doesn't yet support setting node version to 18.

- Reverted fetch to axios (only in node 18)
  • Loading branch information
iRoachie authored Nov 7, 2022
1 parent 4bce0f1 commit 3dfb803
Show file tree
Hide file tree
Showing 11 changed files with 10,886 additions and 3,324 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
pull_request:
branches:
- master
- main
release:
types: [released, prereleased]
push:
Expand All @@ -19,22 +19,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- run: echo true

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- run: echo true

notify:
runs-on: ubuntu-latest
needs: [test, lint]
if: always()
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Test Output
uses: ./ # Uses an action in the root directory
env:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v16
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- run: npm install
- run: npm test

- uses: iRoachie/[email protected].0
- uses: iRoachie/[email protected].2
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
if: always() # Always runs even if one of the builds fails
runs-on: ubuntu-latest
steps:
- uses: iRoachie/[email protected].0
- uses: iRoachie/[email protected].2
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
status:
description: Status of the workflow
runs:
using: node12
using: node16
main: dist/index.js
branding:
icon: 'check-circle'
Expand Down
Loading

0 comments on commit 3dfb803

Please sign in to comment.