-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded dependencies of actions (#120)
- Upgraded all actions to their latest versions - No more `node 14 not supported` warnings - Converted tests jobs into matrix - It's more straightforward as it has a final job - Updated `tibdex/github-app-token` to `actions/create-github-app-token` - Done both in the docs as in the actions themselves.
- Loading branch information
Showing
5 changed files
with
40 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ jobs: | |
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v1 | ||
uses: actions/create-github-app-token@v1.9.3 | ||
with: | ||
app_id: ${{ secrets.PROJECT_APP_ID }} | ||
private_key: ${{ secrets.PROJECT_APP_KEY }} | ||
app-id: ${{ secrets.PROJECT_APP_ID }} | ||
private-key: ${{ secrets.PROJECT_APP_KEY }} | ||
- name: Sync issues | ||
uses: paritytech/[email protected] | ||
uses: paritytech/[email protected].2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PROJECT_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,55 +3,35 @@ name: Continuous testing | |
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use node 20 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- uses: c-hive/gha-yarn-cache@v2 | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- run: yarn run lint | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use node 20 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- uses: c-hive/gha-yarn-cache@v2 | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- run: yarn run build | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
command: [lint, build, test, "cli '.github/review-bot.yml'"] | ||
runs-on: ubuntu-latest | ||
name: running ${{ matrix.command }} | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use node 20 | ||
uses: actions/setup-node@v3 | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
- uses: c-hive/gha-yarn-cache@v2 | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}- | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- run: yarn run test | ||
- run: yarn run ${{ matrix.command }} | ||
|
||
evaluate-config: | ||
conclude: | ||
runs-on: ubuntu-latest | ||
name: All tests passed | ||
needs: [test] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use node 20 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- uses: c-hive/gha-yarn-cache@v2 | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Evaluates config file | ||
run: yarn run cli ".github/review-bot.yml" | ||
- run: echo '### Good job! All the tests passed 🚀' >> $GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters