Skip to content

Commit

Permalink
Merge pull request #196 from debricked/update-github-actions
Browse files Browse the repository at this point in the history
Update various actions to their latest versions to get rid of Node 16…
  • Loading branch information
zozs authored Feb 12, 2024
2 parents 453c459 + 0bd3839 commit 31eb1db
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codescene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
container:
image: empear/codescene-ci-cd:latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run delta analysis
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/debricked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Pull Supported Formats
run: |
cd cmd/debricked
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '>=1.20'
cache: true
Expand Down
38 changes: 10 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
git config --global core.autocrlf input
git config --global core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'

Expand All @@ -31,15 +31,6 @@ jobs:
npm install --global bower
bower -v
- uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.os }}-go
- name: Pull Supported Formats
run: |
cd cmd/debricked
Expand All @@ -54,7 +45,7 @@ jobs:
TEST_COVERAGE_THRESHOLD: 90

- name: Upload coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: coverage.html
Expand All @@ -79,22 +70,13 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.20'

- uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.os }}-go
- name: Pull Supported Formats
run: |
cd cmd/debricked
Expand All @@ -104,7 +86,7 @@ jobs:
run: go build -v ./...

- name: Set up Java ${{matrix.java}}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java}}
distribution: 'temurin'
Expand All @@ -122,7 +104,7 @@ jobs:
matrix:
docker-os: ['alpine', 'debian']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Pull from debian and re-tag to match cache
- name: Pull Image; Debian
Expand Down Expand Up @@ -151,15 +133,15 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Pull Supported Formats
run: |
cd cmd/debricked
go generate -v -x
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.52
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<p align="center">
<a href="#"/>
<p align="center">
<img width="150" height="150" src="/assets/CLI_logo_1024.png" alt="Logo">
<img width="150" height="150" src="./assets/CLI_logo_1024.png" alt="Logo">
<h1 align="center"><b>Debricked CLI</b></h1>
<p align="center">
Safety through commandline.
Expand Down
4 changes: 2 additions & 2 deletions examples/templates/GitHub/debricked-non-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: debricked/actions/cache@v3
- uses: actions/checkout@v4
- uses: debricked/actions/cache@v4
- uses: debricked/actions/scan-non-docker@v3
env:
DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN }}
2 changes: 1 addition & 1 deletion examples/templates/GitHub/debricked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: debricked/actions@v3
env:
DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN }}

0 comments on commit 31eb1db

Please sign in to comment.