Skip to content

Commit

Permalink
ci: Use latest devbox install action (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored Jul 26, 2023
1 parent 6870fd6 commit e860f37
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 61 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/checks-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
Expand Down
40 changes: 4 additions & 36 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
NIX_USER_COUNT: 4

- name: Run unit tests
run: devbox run -- make test
Expand All @@ -60,18 +52,10 @@ jobs:
with:
fetch-depth: 0

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
NIX_USER_COUNT: 4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -97,18 +81,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
NIX_USER_COUNT: 4

- name: Export golang and golangci-lint versions
run: |
Expand All @@ -129,18 +105,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
NIX_USER_COUNT: 4

- name: Set up pre-commit cache
uses: actions/cache@v3
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,10 @@ jobs:
with:
languages: ${{ matrix.language }}

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
NIX_USER_COUNT: 4

- name: Build
run: devbox run -- make build-snapshot
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ jobs:
ref: ${{ github.ref }}
fetch-depth: 0

# Setup github authentication to ensure Github's rate limits are not hit.
- name: Configure nix GitHub access-tokens
run: |
mkdir -p ~/.config/nix
echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
uses: jetpack-io/devbox-install-action@main
with:
enable-cache: true
env:
NIX_USER_COUNT: 4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down

0 comments on commit e860f37

Please sign in to comment.