Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Sep 3, 2024
1 parent 2fc5c8a commit c556bc4
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Testing
name: ci

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
pull_request:

concurrency:
group: pr-testing-${{ github.head_ref || github.run_id }}
group: ci-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -93,3 +93,35 @@ jobs:
if: always()
shell: bash
run: rm -rf *
rpcimportable:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: go get node
working-directory: contrib/rpcimportable
run: go get github.com/zeta-chain/node@${{github.event.pull_request.head.sha || github.sha}}
env:
GOPROXY: direct
- name: go mod tidy
working-directory: contrib/rpcimportable
run: go mod tidy
- name: go test
working-directory: contrib/rpcimportable
run: go test ./...
ci-ok:
runs-on: ubuntu-22.04
needs:
- build-and-test
- rpcimportable
if: always()
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "One of the jobs failed or was cancelled"
exit 1

0 comments on commit c556bc4

Please sign in to comment.