Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use latest devbox install action #471

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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