Skip to content

Commit

Permalink
feat!: bump to use nodejs 20 runtime (#183)
Browse files Browse the repository at this point in the history
* feat: bump to use nodejs 20 runtime

Signed-off-by: Rui Chen <[email protected]>

* feat: bump actions/checkout to v4 to use nodejs 20 runtime

Signed-off-by: Rui Chen <[email protected]>

* feat: bump actions/setup-node to v4 to use nodejs 20 runtime

Signed-off-by: Rui Chen <[email protected]>

* feat: use node-version-file instead of node-version

Signed-off-by: Rui Chen <[email protected]>

* chore: update org for foresight* actions

Signed-off-by: Rui Chen <[email protected]>

---------

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored May 12, 2024
1 parent e4ee818 commit c945b89
Show file tree
Hide file tree
Showing 13 changed files with 34,574 additions and 150,100 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-wiki.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish wiki

on:
push:
push:
branches: [ main ]
paths:
- wiki/**
Expand All @@ -18,9 +18,7 @@ jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Andrew-Chen-Wang/github-wiki-action@v4
with:
token: ${{ secrets.REPO_WIKI_WRITE_TOKEN }}


34 changes: 10 additions & 24 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,25 @@ on:

jobs:
tests:
name: Tests

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- name: Collect Workflow Telemetry
uses: runforesight/foresight-workflow-kit-action@v1
uses: catchpoint/foresight-workflow-kit-action@v1
if: success() || failure()
with:
api_key: ${{ secrets.foresight_api_key }}

- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: '.node-version'
cache: 'npm'
- run: npm install
- run: npm run test

- name: Analyze Test and/or Coverage Results
uses: runforesight/foresight-test-kit-action@v1
uses: catchpoint/foresight-test-kit-action@v1
if: success() || failure()
with:
api_key: ${{ secrets.foresight_api_key }}
Expand All @@ -44,20 +37,13 @@ jobs:
coverage_path: ./coverage

lint:
name: Lint

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: '.node-version'
cache: 'npm'
- run: npm install
- run: npm run lint
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.12.2
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<h1>GitHub Profile Summary Cards</h1>


[繁體中文](./docs/README.zh-tw.md)
<p>
A tool to generate your github summary card for profile README. Inspired by <a href=https://github.com/tipsy/profile-summary-for-github>profile-summary-for-github</a>
Expand Down Expand Up @@ -69,7 +69,7 @@
- Theme name
- username
- Username
- exclude:
- exclude:
- A comma separated list of languages to exclude, e.g., exclude=java,rust
- You can found the supported languages in [here](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)

Expand All @@ -82,7 +82,7 @@
- Theme name
- username
- Username
- exclude:
- exclude:
- A comma separated list of languages to exclude, e.g., exclude=java,rust
- You can found the supported languages in [here](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)

Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: vn7n24fzkq/github-profile-summary-cards@release
env: # default use ${{ secrets.SUMMARY_GITHUB_TOKEN }}, you should replace with your personal access token
GITHUB_TOKEN: ${{ secrets.SUMMARY_GITHUB_TOKEN }}
Expand All @@ -166,10 +166,10 @@ jobs:
# BRANCH_NAME is optional, default to main, branch name to push cards
BRANCH_NAME: "main"
# UTC_OFFSET is optional, default to zero
UTC_OFFSET: 8
UTC_OFFSET: 8
# EXCLUDE is an optional comma seperated list of languages to exclude, defaults to ""
EXCLUDE: ""
# AUTO_PUSH is optional, a boolean variable default to true, whether automatically push generated files to desired branch
# AUTO_PUSH is optional, a boolean variable default to true, whether automatically push generated files to desired branch
AUTO_PUSH: true
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
default: true

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'

branding:
Expand Down
Loading

0 comments on commit c945b89

Please sign in to comment.