Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Feb 29, 2024
1 parent 00dc250 commit dc3b88c
Show file tree
Hide file tree
Showing 7 changed files with 1,916 additions and 134 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,17 @@ jobs:
- name: Pull LFS files
run: git lfs pull
- run: |
nix --version
echo test
make build
if: "env.GIT_DIFF != ''"
build-nix:
strategy:
matrix:
os: [nixos, macos-latest]
runs-on: ${{ matrix.os }}
runner: [nix, macos-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: haqq-network/nix-action@master
if: ${{ matrix.os == 'macos-latest' }}
if: ${{ matrix.runner == 'macos-latest' }}
with:
installNix: true
useCachix: false
Expand All @@ -56,7 +54,7 @@ jobs:
| jq -r '.[].outputs | to_entries[].value' \
| nix run nixpkgs#cachix push haqq
check-nix:
runs-on: [self-hosted, nixos]
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v4
- name: Check if nix package and Makefile versions match
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

build:
name: Check that proto builds and commited
runs-on: [self-hosted, nixos]
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v4
- run: |
Expand All @@ -32,7 +32,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.28.1
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.28.1
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
input: "proto"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-node-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
pull_request:

jobs:
node-bootstrap:
runs-on: [self-hosted, nixos]
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v4
- name: Test node bootstrap
run: |
nix build .#packages.x86_64-linux.nixos-test --no-sandbox --print-build-logs
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-nix:
runs-on: [self-hosted, nixos]
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v4
- name: Run nix package tests
Expand Down
Loading

0 comments on commit dc3b88c

Please sign in to comment.