Bump @typescript-eslint/eslint-plugin from 6.21.0 to 8.10.0 #68
Workflow file for this run
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
name: NodeJS | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x, 16.x, 18.x, 20.x] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: npm install | |
- name: Unit Test | |
run: npm run ci | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # required | |
- name: Setup OIDC | |
run: npm install @actions/core@1.6.0 @actions/http-client | |
- name: Get Id Token | |
uses: actions/github-script@v7 | |
id: idtoken | |
with: | |
script: | | |
const coreDemo = require('@actions/core'); | |
const idToken = await coreDemo.getIDToken('sts.aliyuncs.com'); | |
const fsx = require('fs/promises'); | |
await fsx.writeFile('/tmp/oidc_token', idToken); | |
- name: Integration Test | |
run: npm run integration | |
if: env.SUB_ACCESS_KEY_ID != '' | |
env: | |
# for RAM role ARN | |
ROLE_ARN: ${{ secrets.ROLE_ARN }} | |
SUB_ACCESS_KEY_ID: ${{ secrets.SUB_ACCESS_KEY_ID }} | |
SUB_ACCESS_KEY_SECRET: ${{ secrets.SUB_ACCESS_KEY_SECRET }} | |
ROLE_ARN_TO_ASSUME: ${{ secrets.ROLE_ARN_TO_ASSUME }} | |
# for OIDC | |
ALIBABA_CLOUD_OIDC_PROVIDER_ARN: ${{ secrets.ALIBABA_CLOUD_OIDC_PROVIDER_ARN }} | |
ALIBABA_CLOUD_OIDC_TOKEN_FILE: "/tmp/oidc_token" | |
ALIBABA_CLOUD_ROLE_ARN: ${{ secrets.OIDC_ROLE_ARN }} |