build: merge workflows into one

This commit is contained in:
Mikhail Zolotukhin 2021-09-05 11:22:32 +03:00
parent 4169c4f59e
commit d0f3f2b5d9
2 changed files with 23 additions and 36 deletions

View File

@ -1,34 +0,0 @@
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
#
# SPDX-License-Identifier: MIT
---
name: Lint Code Base
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
lint:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run Linter against code base #
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
JAVASCRIPT_DEFAULT_STYLE: prettier
VALIDATE_TYPESCRIPT_STANDARD: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT
---
name: Build and Test Script
name: Main Workflow
on:
push:
branches: [master, main]
@ -11,8 +11,29 @@ on:
branches: [master, main]
jobs:
lint:
name: Lint & Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run Linter against code base #
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
JAVASCRIPT_DEFAULT_STYLE: prettier
VALIDATE_TYPESCRIPT_STANDARD: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build Script
name: Build
runs-on: ubuntu-latest
steps: