Skip to content

Commit

Permalink
ci: Migrate CircleCI automation to github actions. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
winder authored Apr 26, 2023
1 parent a61e266 commit 585a568
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 93 deletions.
90 changes: 0 additions & 90 deletions .circleci/config.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: "ReviewDog workflow"
name: "Lint Checks"
on:
pull_request:
jobs:
# Blocking Errors Section
reviewdog-errors:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
Expand All @@ -14,6 +13,10 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: '1.17.13'
- name: Check format
run: test -z `go fmt ./...`
- name: Vet
run: go vet ./...
- name: reviewdog-golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Tests
on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- 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: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install algod
run: |
CHANNEL="stable"
wget https://raw.githubusercontent.com/algorand/go-algorand/rel/stable/cmd/updater/update.sh && chmod 744 update.sh
./update.sh -i -c "$CHANNEL" -n -d ./ -p "$RUNNER_WORKSPACE/algod_bin"
ls "$RUNNER_WORKSPACE/algod_bin"
# Make it accessible from runner
echo "$RUNNER_WORKSPACE/algod_bin" >> $GITHUB_PATH
- name: Test for algod on path
run: which algod

- name: Build Conduit
run: make

- name: Run tests
run: make test

- name: Build e2e tests
run: pip3 install e2e_tests/

- name: Run e2e tests
run: |
FILENAME="fa6ad40d/rel-nightly"
export CI_E2E_FILENAME="$FILENAME"
make e2e-conduit
- name: Upload codecov report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 585a568

Please sign in to comment.