Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 1 addition & 9 deletions .github/actions/default/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,11 @@ runs:
steps:
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Cache dependencies
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/flake.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
- name: Load dependencies
shell: bash
run: nix develop --install
- uses: actions/cache@v5
- uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
~/.cache/go-build
/tmp/go/pkg/mod/
key: ${{ runner.os }}-${{ github.job }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-go-
4 changes: 1 addition & 3 deletions .github/actions/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ inputs:
runs:
using: composite
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: namespacelabs/nscloud-setup-buildx-action@v0
- name: "Put back the git branch into git (Earthly uses it for tagging)"
shell: bash
run: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
PR:
if: github.event_name == 'pull_request'
name: Check PR Title
runs-on: "shipfox-2vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-2vcpu"
timeout-minutes: 1
permissions:
statuses: write
Expand All @@ -27,10 +27,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Dirty:
runs-on: "shipfox-2vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-2vcpu"
name: "Dirty"
steps:
- uses: "actions/checkout@v6"
- uses: "namespacelabs/nscloud-checkout-action@v7"
with:
fetch-depth: 0
- name: Setup Nix
Expand All @@ -47,9 +47,9 @@ jobs:
run: "hasChanged=$(git status --porcelain) \nif (( $(echo ${#hasChanged}) != 0 )); then\n git status\n echo \"There are changes in the repository\"\n git diff\n exit 1\nfi\n"
TestsUnit:
name: "Tests (Unit)"
runs-on: "shipfox-4vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-4vcpu"
steps:
- uses: "actions/checkout@v6"
- uses: "namespacelabs/nscloud-checkout-action@v7"
with:
fetch-depth: 0
- name: Setup Nix
Expand All @@ -67,9 +67,9 @@ jobs:
path: ./coverage/coverage_unit.txt
TestsE2E:
name: "Tests (E2E)"
runs-on: "shipfox-8vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-8vcpu"
steps:
- uses: "actions/checkout@v6"
- uses: "namespacelabs/nscloud-checkout-action@v7"
with:
fetch-depth: 0
- name: Setup Nix
Expand All @@ -94,9 +94,9 @@ jobs:
path: ./coverage/coverage_e2e.txt
TestsIntegration:
name: "Tests (Integration)"
runs-on: "shipfox-8vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-8vcpu"
steps:
- uses: "actions/checkout@v6"
- uses: "namespacelabs/nscloud-checkout-action@v7"
with:
fetch-depth: 0
- name: Setup Nix
Expand All @@ -113,14 +113,14 @@ jobs:
name: coverage-integration-report
path: ./coverage/coverage_integration.txt
Tests:
runs-on: "shipfox-2vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-2vcpu"
name: "Tests"
needs:
- TestsUnit
- TestsIntegration
- TestsE2E
steps:
- uses: "actions/checkout@v6"
- uses: "namespacelabs/nscloud-checkout-action@v7"
with:
fetch-depth: 0
- name: Setup Nix
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ permissions:
contents: write
jobs:
Release:
runs-on: "shipfox-4vcpu-ubuntu-2404"
runs-on: "namespace-profile-linux-amd64-4vcpu"
steps:
- uses: "actions/checkout@v6"
- uses: "namespacelabs/nscloud-checkout-action@v7"
- name: Setup Env
uses: ./.github/actions/default
with:
Expand Down
Loading