This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
deps: update dependency @typescript-eslint/eslint-plugin to v6 - autoclosed #132
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
CI: 1 | |
ARTIFACT_DIR: ./artifacts | |
jobs: | |
commit-watch: | |
name: Run Commit Watch | |
runs-on: ubuntu-22.04 | |
if: "github.event_name == 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/detect-env | |
- name: Setup Node.js | |
uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Create artifacts directory | |
run: mkdir -p ${{ env.ARTIFACT_DIR }} | |
- name: Run Commit Watch | |
env: | |
COMMIT_WATCH_OUTPUT_DIR: ${{ env.ARTIFACT_DIR }}/ | |
COMMITWATCH_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
CI_REPO_OWNER: ${{ github.repository_owner }} | |
CI_REPO_NAME: ${{ github.event.repository.name }} | |
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
CI_BASE_BRANCH: origin/${{ github.base_ref }} | |
run: yarn dlx commit-watch | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: commit-watch-artifacts | |
path: ${{ env.ARTIFACT_DIR }} | |
tests: | |
name: Lint & Tests | |
runs-on: ubuntu-22.04 | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/detect-env | |
- name: Setup Node.js | |
uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Create artifacts directory | |
run: mkdir -p ${{ env.ARTIFACT_DIR }} | |
- name: Restore yarn cache | |
id: yarn-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./.yarn | |
./.pnp.* | |
key: ${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Linting | |
run: yarn lint:ci | |
- name: Type Check | |
run: yarn types | |
- name: Set GitHub user for tests | |
run: | | |
git config --global user.email "opensource@tophat.com" | |
git config --global user.name "Top Hat Open Source" | |
- name: Tests | |
run: yarn test:ci | |
- name: Upload Coverage Report | |
run: ./.github/codecov.sh $GITHUB_EVENT_PATH | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: report-artifacts | |
path: ${{ env.ARTIFACT_DIR }} | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
needs: [tests] | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- uses: ./.github/actions/detect-env | |
- name: Setup Node.js | |
uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Create artifacts directory | |
run: mkdir -p ${{ env.ARTIFACT_DIR }} | |
- name: Restore yarn cache | |
id: yarn-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./.yarn | |
./.pnp.* | |
key: ${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: ${{ env.ARTIFACT_DIR }} |