mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-05-15 14:45:53 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
commit
3e9a095cc7
1 changed files with 26 additions and 18 deletions
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
|
|
@ -10,36 +10,41 @@ env:
|
|||
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write # Used by Release step to update "The automated release is failing" issue
|
||||
pull-requests: write # Used by ShellCheck Action to add comments on PR
|
||||
issues: write # Used by Release step to update "The automated release is failing" issue
|
||||
pull-requests: write # Used by ShellCheck Action to add comments on PR
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-20.04
|
||||
container: pipelinecomponents/hadolint:0.10.1
|
||||
runs-on: ubuntu-24.04
|
||||
container: pipelinecomponents/hadolint:0.27.2
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Run hadolint
|
||||
run: hadolint Dockerfile
|
||||
|
||||
shellcheck:
|
||||
name: ShellCheck
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Run ShellCheck
|
||||
uses: reviewdog/action-shellcheck@v1.16.0
|
||||
uses: reviewdog/action-shellcheck@v1.31.0
|
||||
with:
|
||||
reporter: github-pr-review
|
||||
fail_on_error: true
|
||||
|
||||
build-test:
|
||||
name: Build and Test
|
||||
runs-on: ubuntu-20.04
|
||||
needs: [ "lint", "shellcheck" ]
|
||||
runs-on: ubuntu-24.04
|
||||
needs:
|
||||
- lint
|
||||
- shellcheck
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t $TEST_IMAGE_NAME .
|
||||
|
||||
|
|
@ -50,10 +55,11 @@ jobs:
|
|||
|
||||
integration-tests:
|
||||
name: Integration Tests
|
||||
runs-on: ubuntu-20.04
|
||||
needs: build-test
|
||||
runs-on: ubuntu-24.04
|
||||
needs:
|
||||
- build-test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Run integration test 1
|
||||
uses: ./
|
||||
|
|
@ -120,11 +126,13 @@ jobs:
|
|||
release:
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
name: Release
|
||||
runs-on: ubuntu-20.04
|
||||
needs: integration-tests
|
||||
runs-on: ubuntu-24.04
|
||||
needs:
|
||||
- integration-tests
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cycjimmy/semantic-release-action@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- uses: cycjimmy/semantic-release-action@v5
|
||||
with:
|
||||
extra_plugins: |
|
||||
@semantic-release/git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue