chore(deps): bump actions/checkout from 3.6.0 to 4.0.0 #315
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
test-package: | |
name: Build & Run (package) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=./nix/nixpkgs.nix | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: cbley | |
extraPullNames: pre-commit-hooks | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
# Only needed for private caches | |
#authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix flake check | |
- run: nix build --print-build-logs | |
- run: nix run . -- --help | |
test-shell: | |
name: Build & Run (shell) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=./nix/nixpkgs.nix | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: cbley | |
extraPullNames: pre-commit-hooks | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
# Only needed for private caches | |
#authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Set up BuildBuddy | |
env: | |
BUILDBUDDY_API_KEY: '${{ secrets.BUILDBUDDY_API_KEY }}' | |
run: | | |
if [ -z "$BUILDBUDDY_API_KEY" ]; then | |
cache_setting='build --noremote_upload_local_results' | |
else | |
cache_setting="build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" | |
fi | |
cat > .bazelrc.local <<EOF | |
startup --max_idle_secs=5 | |
common --config=ci | |
$cache_setting | |
EOF | |
cat > ~/.netrc <<EOF | |
machine api.github.com | |
password ${{ secrets.GITHUB_TOKEN }} | |
EOF | |
- run: nix flake check | |
- run: nix develop --command bazel build //:replay | |
- run: nix develop --command bazel run -- //:replay --help | |