mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-04 13:37:43 +03:00
build: merge workflows into one
This commit is contained in:
parent
4169c4f59e
commit
d0f3f2b5d9
34
.github/workflows/linter.yml
vendored
34
.github/workflows/linter.yml
vendored
@ -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 }}
|
25
.github/workflows/master.yml
vendored
25
.github/workflows/master.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user