Skip to content

Commit

Permalink
ci: Migrate circleci automation to github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed Apr 25, 2023
1 parent 08cccbc commit cde002e
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Tests
on:
pull_request:
push:
inputs:
ci-e2e-algod-channel:
description: 'Release channel for algod installation.'
required: true
default: 'stable'
ci-e2e-filename:
description: 'Pattern to use when searching for the CI E2E File.'
required: true
default: 'fa6ad40d/rel-nightly'
jobs:
test:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags

- name: Install go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'

- name: Build Conduit
run: make

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

- name: Run tests
run: make test

- name: Install algod
run: |
wget https://raw.githubusercontent.com/algorand/go-algorand/rel/stable/cmd/updater/update.sh && chmod 744 update.sh
./update.sh -i -c ${{ inputs.ci-e2e-algod-channel }} -n -d ./ -p /usr/local/go/bin
export GOPATH=/usr/local/go/
- name: Run e2e tests
run: |
export CI_E2E_FILENAME=${{ inputs.ci-e2e-filename }}
make e2e-conduit
- name: Upload codecov report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit cde002e

Please sign in to comment.