ci: split to parallel stages
This commit is contained in:
parent
243484c29d
commit
e2ccbe5c25
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@ -12,16 +12,25 @@ on:
|
|||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
pre-commit:
|
||||||
build:
|
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: pre-commit
|
- name: pre-commit
|
||||||
uses: pre-commit/action@v1.1.0
|
uses: pre-commit/action@v1.1.0
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
- name: Hadolint Action
|
- name: Hadolint Action
|
||||||
uses: brpaz/hadolint-action@v1.1.0
|
uses: brpaz/hadolint-action@v1.1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build the tagged Docker image
|
||||||
|
run: docker build .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user