-
Notifications
You must be signed in to change notification settings - Fork 941
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
97 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
name: Build and Test | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
contents: read | ||
concurrency: | ||
# Ref: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context | ||
# github.head_ref: head_ref or source branch of the pull request | ||
|
@@ -27,9 +27,17 @@ jobs: | |
images: | ||
- prefix: slim- | ||
target: slim | ||
platform: linux/amd64 | ||
- prefix: "" | ||
target: standard | ||
timeout-minutes: 60 | ||
platform: linux/amd64 | ||
- prefix: slim- | ||
target: slim | ||
platform: linux/arm64/v8 | ||
- prefix: "" | ||
target: standard | ||
platform: linux/arm64/v8 | ||
timeout-minutes: 180 | ||
env: | ||
CONTAINER_IMAGE_ID: "ghcr.io/super-linter/super-linter:${{ matrix.images.prefix }}latest" | ||
CONTAINER_IMAGE_TARGET: "${{ matrix.images.target }}" | ||
|
@@ -84,6 +92,9 @@ jobs: | |
sudo rm -rf /opt/ghc || true | ||
sudo rm -rf /usr/local/.ghcup || true | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
|
@@ -99,6 +110,7 @@ jobs: | |
cache-from: type=registry,ref=${{ env.CONTAINER_IMAGE_ID }}-buildcache | ||
outputs: type=docker,dest=/tmp/${{ env.CONTAINER_IMAGE_OUTPUT_IMAGE_NAME }}.tar | ||
push: false | ||
platforms: ${{ matrix.images.platform }} | ||
secrets: | | ||
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
tags: | | ||
|
@@ -114,6 +126,7 @@ jobs: | |
- name: Test Local Action (debug log) | ||
uses: ./ | ||
if: matrix.images.platform == 'linux/amd64' | ||
env: | ||
LOG_LEVEL: DEBUG | ||
CREATE_LOG_FILE: true | ||
|
@@ -125,11 +138,13 @@ jobs: | |
TYPESCRIPT_STANDARD_TSCONFIG_FILE: ".github/linters/tsconfig.json" | ||
|
||
- name: Get the contents of the log file | ||
if: matrix.images.platform == 'linux/amd64' | ||
run: | | ||
sudo cat super-linter.log | ||
sudo rm -v super-linter.log | ||
- name: Test Local Action (default log) | ||
if: matrix.images.platform == 'linux/amd64' | ||
uses: ./ | ||
env: | ||
VALIDATE_ALL_CODEBASE: false | ||
|
@@ -144,6 +159,7 @@ jobs: | |
run: make validate-container-image-labels | ||
|
||
- name: Upload ${{ env.CONTAINER_IMAGE_OUTPUT_IMAGE_NAME }} container image | ||
if: matrix.images.platform == 'linux/amd64' | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ env.CONTAINER_IMAGE_OUTPUT_IMAGE_NAME }} | ||
|
@@ -220,7 +236,7 @@ jobs: | |
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name && github.repository == 'super-linter/super-linter' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters