From 4b3f109a2a342f2b39c553aa2e198a5a5a53e76e Mon Sep 17 00:00:00 2001 From: Konrad Bosak Date: Mon, 22 Apr 2024 14:14:54 +0200 Subject: [PATCH] Add CodecovCI token (#1326) --- .github/labeler.yml | 136 +++++++++++++++++++++------------- .github/workflows/CI.yml | 10 ++- .github/workflows/labeler.yml | 2 +- 3 files changed, 93 insertions(+), 55 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index f07126c96..e8da31ba5 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,68 +1,104 @@ 'Area: Bridge': - - 'packages/uniforms-bridge-graphql/**/*' - - 'packages/uniforms-bridge-json-schema/**/*' - - 'packages/uniforms-bridge-simple-schema-2/**/*' - - 'packages/uniforms-bridge-simple-schema/**/*' - - 'packages/uniforms-bridge-zod/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bridge-graphql/**/* + - packages/uniforms-bridge-json-schema/**/* + - packages/uniforms-bridge-simple-schema-2/**/* + - packages/uniforms-bridge-simple-schema/**/* + - packages/uniforms-bridge-zod/**/* 'Area: Core': - - 'packages/uniforms/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms/**/* 'Area: Docs': - - 'CODE_OF_CONDUCT.md' - - 'LICENSE' - - 'README.md' - - 'docs/**/*' - - 'reproductions/**/*' - - 'website/**/*' + - changed-files: + - any-glob-to-any-file: + - CODE_OF_CONDUCT.md + - LICENSE + - README.md + - docs/**/* + - reproductions/**/* + - website/**/* 'Area: Infra': - - '.editorconfig' - - '.eslintignore' - - '.eslintrc.json' - - '.github/**/*' - - '.gitignore' - - '.lintstagedrc.js' - - '.prettierignore' - - '.prettierrc.js' - - '.stylelintrc' - - 'jest.config.js' - - 'lerna.json' - - 'package-lock.json' - - 'package.json' - - 'scripts/**/*' - - 'tsconfig.build.json' - - 'tsconfig.global.json' - - 'tsconfig.json' + - changed-files: + - any-glob-to-any-file: + - .editorconfig + - .eslintignore + - .eslintrc.json + - .github/**/* + - .gitignore + - .lintstagedrc.js + - .prettierignore + - .prettierrc.js + - .stylelintrc + - jest.config.js + - lerna.json + - package-lock.json + - package.json + - scripts/**/* + - tsconfig.build.json + - tsconfig.global.json + - tsconfig.json 'Area: Theme': - - 'packages/uniforms-antd/**/*' - - 'packages/uniforms-bootstrap3/**/*' - - 'packages/uniforms-bootstrap4/**/*' - - 'packages/uniforms-bootstrap5/**/*' - - 'packages/uniforms-material/**/*' - - 'packages/uniforms-mui/**/*' - - 'packages/uniforms-semantic/**/*' - - 'packages/uniforms-unstyled/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-antd/**/* + - packages/uniforms-bootstrap3/**/* + - packages/uniforms-bootstrap4/**/* + - packages/uniforms-bootstrap5/**/* + - packages/uniforms-material/**/* + - packages/uniforms-mui/**/* + - packages/uniforms-semantic/**/* + - packages/uniforms-unstyled/**/* 'Bridge: GraphQL': - - 'packages/uniforms-bridge-graphql/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bridge-graphql/**/* 'Bridge: JSON Schema': - - 'packages/uniforms-bridge-json-schema/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bridge-json-schema/**/* 'Bridge: SimpleSchema': - - 'packages/uniforms-bridge-simple-schema/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bridge-simple-schema/**/* 'Bridge: SimpleSchema (v2)': - - 'packages/uniforms-bridge-simple-schema-2/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bridge-simple-schema-2/**/* 'Bridge: Zod': - - 'packages/uniforms-bridge-zod/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bridge-zod/**/* 'Theme: AntD': - - 'packages/uniforms-antd/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-antd/**/* 'Theme: Bootstrap 3': - - 'packages/uniforms-bootstrap3/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bootstrap3/**/* 'Theme: Bootstrap 4': - - 'packages/uniforms-bootstrap4/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bootstrap4/**/* 'Theme: Bootstrap 5': - - 'packages/uniforms-bootstrap5/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-bootstrap5/**/* 'Theme: Material-UI': - - 'packages/uniforms-material/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-material/**/* 'Theme: MUI': - - 'packages/uniforms-mui/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-mui/**/* 'Theme: Semantic UI': - - 'packages/uniforms-semantic/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-semantic/**/* 'Theme: Unstyled': - - 'packages/uniforms-unstyled/**/*' + - changed-files: + - any-glob-to-any-file: + - packages/uniforms-unstyled/**/* diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d5ea7fe2f..0940bf0e4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,9 +13,9 @@ jobs: node-version: [14.x, 16.x, 18.x, 20.x] steps: - name: Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4.1.1 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@v4.0.2 with: cache: npm node-version: ${{ matrix.node-version }} @@ -30,14 +30,16 @@ jobs: - name: Test run: npm run coverage -- --no-cache --runInBand - name: Report coverage - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v4.3.0 with: fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Build docs run: npm --prefix website run build if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.node-version == '20.x' - name: Deploy docs - uses: peaceiris/actions-gh-pages@v3.9.2 + uses: peaceiris/actions-gh-pages@v4.0.0 with: allow_empty_commit: true cname: uniforms.tools diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 80ef3a236..dcf620738 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Update labels - uses: actions/labeler@v4.0.3 + uses: actions/labeler@v5.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} sync-labels: true