Skip to content

Commit

Permalink
ci: setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Mar 17, 2024
1 parent da849b0 commit 7ef28b0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Checks (on Linux)

on:
workflow_call:

jobs:
lint:
name: Run linters and code checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-23.11
- uses: cachix/cachix-action@v14
with:
name: apibara-public
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix flake check
15 changes: 15 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI Pipeline

concurrency:
group: pipeline-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches:
- new-pipeline

jobs:
check:
name: "Checks"
uses: ./.github/workflows/check.yml

0 comments on commit 7ef28b0

Please sign in to comment.