mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-04 23:51:38 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
+26
-18
@@ -10,36 +10,41 @@ env:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
issues: write # Used by Release step to update "The automated release is failing" issue
|
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
|
pull-requests: write # Used by ShellCheck Action to add comments on PR
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
container: pipelinecomponents/hadolint:0.10.1
|
container: pipelinecomponents/hadolint:0.27.2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Run hadolint
|
- name: Run hadolint
|
||||||
run: hadolint Dockerfile
|
run: hadolint Dockerfile
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
name: ShellCheck
|
name: ShellCheck
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Run ShellCheck
|
- name: Run ShellCheck
|
||||||
uses: reviewdog/action-shellcheck@v1.16.0
|
uses: reviewdog/action-shellcheck@v1.31.0
|
||||||
with:
|
with:
|
||||||
reporter: github-pr-review
|
reporter: github-pr-review
|
||||||
fail_on_error: true
|
fail_on_error: true
|
||||||
|
|
||||||
build-test:
|
build-test:
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
needs: [ "lint", "shellcheck" ]
|
needs:
|
||||||
|
- lint
|
||||||
|
- shellcheck
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t $TEST_IMAGE_NAME .
|
run: docker build -t $TEST_IMAGE_NAME .
|
||||||
|
|
||||||
@@ -50,10 +55,11 @@ jobs:
|
|||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
name: Integration Tests
|
name: Integration Tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
needs: build-test
|
needs:
|
||||||
|
- build-test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Run integration test 1
|
- name: Run integration test 1
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -120,11 +126,13 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
needs: integration-tests
|
needs:
|
||||||
|
- integration-tests
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v5
|
||||||
- uses: cycjimmy/semantic-release-action@v3
|
|
||||||
|
- uses: cycjimmy/semantic-release-action@v5
|
||||||
with:
|
with:
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/git
|
@semantic-release/git
|
||||||
|
|||||||
Reference in New Issue
Block a user