Skip to content

refactored workflow into separate files #1

refactored workflow into separate files

refactored workflow into separate files #1

Workflow file for this run

name: Main Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Cache node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ github.sha }}
build:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cached node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ github.sha }}
- name: Build
run: npm run build
lint:
needs: install
uses: ./.github/workflows/analyses/linting.yml

Check failure on line 39 in .github/workflows/main-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main-workflow.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
prettier:
needs: install
uses: ./.github/workflows/analyses/prettier.yml
typescript:
needs: install
uses: ./.github/workflows/analyses/typescript.yml
unit_tests:
needs: install
uses: ./.github/workflows/analyses/tests.yml
sonarqube:
needs: [build, unit_tests]
uses: ./.github/workflows/analyses/sonarqube.yml