Skip to content

Refactor CI/CD workflow #5

Refactor CI/CD workflow

Refactor CI/CD workflow #5

Workflow file for this run

name: Main Workflow
on:
push:
branches:
- main
pull_request:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
static_tests:
name: Static Tests
uses: ./.github/workflows/.static-tests.yaml
build:
name: Build
uses: ./.github/workflows/.build.yaml
needs:
- static_tests
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
dynamic_tests:
name: Dynamic Tests
uses: ./.github/workflows/.dynamic-tests.yaml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODSPEED_TOKEN: ${{ secrets.CODSPEED_TOKEN }}
needs:
- static_tests
release:
name: Release
uses: ./.github/workflows/.release.yaml
needs:
- static_tests
- build
- dynamic_tests
if: ${{ github.repository == 'kamiazya/web-csv-toolbox' && github.ref == 'refs/heads/main' && success() }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 43 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Main Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 43, Col: 21): Invalid secret, GITHUB_TOKEN is not defined in the referenced workflow.