Skip to content

Commit

Permalink
Merge pull request #55 from chenrui333/node-20
Browse files Browse the repository at this point in the history
feat: bump action to use node20 runtime
  • Loading branch information
softprops authored Sep 5, 2023
2 parents ca99add + 39531d0 commit d19765f
Show file tree
Hide file tree
Showing 3 changed files with 2,173 additions and 1,009 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Main

on:
on:
workflow_dispatch:
push:
paths-ignore:
Expand All @@ -18,9 +18,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install
run: npm ci
- name: Build
Expand All @@ -29,17 +31,21 @@ jobs:
run: npm run test
- name: Format
run: npm run fmtcheck

integration:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Turnstyle
uses: ./ # Uses an action in the root directory
with:
poll-interval-seconds: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
run: sleep 180
run: sleep 180
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: 'softprops'
env:
'GITHUB_TOKEN': 'Repository token provided by Github Actions secrets'
runs:
using: 'node12'
using: 'node20'
main: 'dist/index.js'
inputs:
poll-interval-seconds:
Expand Down
Loading

0 comments on commit d19765f

Please sign in to comment.