Skip to content

Commit

Permalink
Merge pull request #6865 from TheThingsNetwork/dependabot/github_acti…
Browse files Browse the repository at this point in the history
…ons/actions/cache-4

dev: bump actions/cache from 3 to 4
  • Loading branch information
adriansmares authored Jan 26, 2024
2 parents c5d84e6 + 3f65b8b commit 0a091e3
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-frontend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
steps:
- name: Initialize public folder cache
id: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
public
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build-mage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
- name: Initialize Mage binary cache
id: mage-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: tools/bin/mage
key: ${{ runner.os }}-mage-${{ hashFiles('tools/**') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-go-and-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
using: composite
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}
- name: Download Go dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/install-node-and-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ inputs:
node-version:
description: Node Version
required: true
default: 18
default: "20"
runs:
using: composite
steps:
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: yarn
Expand Down
18 changes: 12 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,47 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "dev"
open-pull-requests-limit: 8

- package-ecosystem: "npm"
directory: "/sdk/js"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "dev"
open-pull-requests-limit: 8

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "dev"
open-pull-requests-limit: 8

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "dev"
open-pull-requests-limit: 8

- package-ecosystem: "gomod"
directory: "/tools"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "dev"
open-pull-requests-limit: 8

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
interval: "weekly"
commit-message:
prefix: "dev"
open-pull-requests-limit: 8
10 changes: 5 additions & 5 deletions .github/workflows/console-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: echo "hash=${{ hashFiles('.github/workflows/console-e2e.yml', '*.go', 'go.mod', 'go.sum', 'pkg/**', 'tools/**', 'config/**', 'package.json', 'pkg/webui/**', 'sdk/js/**', 'yarn.lock', 'cypress/**', 'docker-compose.yml') }}" >> $GITHUB_OUTPUT
- name: Get the cached result
id: run-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .cache/passed
key: run-cache-${{ steps.get-hash.outputs.hash }}-${{ github.run_id }}
Expand Down Expand Up @@ -75,15 +75,15 @@ jobs:
uses: ./.github/actions/install-node-and-deps
- name: Initialize SQL dump cache
id: db-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.env/cache/database.pgdump
.env/admin_api_key.txt
key: db-cache-${{ hashFiles('pkg/identityserver/**/*.go', 'pkg/identityserver/**/*.sql', 'cmd/ttn-lw-stack/commands/is_db.go', '.github/workflows/console-e2e.yml', 'docker-compose.yml') }}
- name: Initialize device repository index cache
id: dr-index-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: data/lorawan-devices-index
key: dr-index-cache-${{ hashFiles('data/lorawan-devices') }}
Expand All @@ -97,7 +97,7 @@ jobs:
uses: ./.github/actions/build-frontend
- name: Initialize build cache
id: build-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ttn-lw-stack
key: build-cache-${{ hashFiles('go.mod', 'go.sum', 'pkg/**', 'config/**', 'cmd/**') }}
Expand Down Expand Up @@ -278,7 +278,7 @@ jobs:
steps:
- name: Setup result cache to skip redundant runs
id: run-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .cache/passed
key: run-cache-${{ needs.determine-if-required.outputs.hash }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
uses: ./.github/actions/build-mage
- name: Install Node and Dependencies
uses: ./.github/actions/install-node-and-deps
- name: Editor config
uses: snow-actions/[email protected]
# TODO: Fix EditorConfig errors and remove
# https://github.com/TheThingsNetwork/lorawan-stack/issues/2723
continue-on-error: true
- name: Check headers
run: tools/bin/mage headers:check
- name: Fix common spelling mistakes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
- name: Check for diff
run: tools/bin/mage git:diff
- name: Lint code
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@2221aee28499deb9551e403a0d876df4b0e70067
with:
version: v1.52.2
version: v1.55.2
only-new-issues: true
skip-pkg-cache: true # Caching is set up by install-go-and-deps
skip-build-cache: true # Caching is set up by install-go-and-deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: ./.github/actions/install-node-and-deps
- name: Initialize device repository index cache
id: dr-index-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: data/lorawan-devices-index
key: dr-index-cache-${{ hashFiles('data/lorawan-devices') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: ./.github/actions/install-node-and-deps
- name: Initialize device repository index cache
id: dr-index-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: data/lorawan-devices-index
key: dr-index-cache-${{ hashFiles('data/lorawan-devices') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
uses: ./.github/actions/install-node-and-deps
- name: Initialize device repository index cache
id: dr-index-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: data/lorawan-devices-index
key: dr-index-cache-${{ hashFiles('data/lorawan-devices') }}
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The Things Stack components are primarily built in Go, we use React for web fron

## Development Environment

The Things Network's development tooling uses [Mage](https://magefile.org/). Under the hood, `mage` calls other tools such as `git`, `go`, `yarn`, `docker` etc. Recent versions are supported; Node v18.x and Go v1.18.x.
The Things Network's development tooling uses [Mage](https://magefile.org/). Under the hood, `mage` calls other tools such as `git`, `go`, `yarn`, `docker` etc. Recent versions are supported; Node v20.x and Go v1.21.x.

- Follow [Go's installation guide](https://golang.org/doc/install) to install Go.
- Download Node.js [from their website](https://nodejs.org) and install it.
Expand Down

0 comments on commit 0a091e3

Please sign in to comment.