Skip to content

Commit

Permalink
revert: restore ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ditsuke committed Apr 9, 2023
1 parent f7693c9 commit a605c76
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: tests

on:
push:
pull_request:
branches: [ main ]

jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.18.1'

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

unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.18.1'

- name: Install dependencies
run: |
go mod download
- name: Run unit tests
run: |
make test-unit
make coverage
- name: Send coverage report
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: covprofile


integration-tests:
needs: [ unit-tests ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.18.1'

- name: Install dependencies
run: |
go mod download
- name: Run integration tests
env:
AMIZONE_USERNAME: ${{ secrets.AMIZONE_USERNAME }}
AMIZONE_PASSWORD: ${{ secrets.AMIZONE_PASSWORD }}
run: |
make test-integration

0 comments on commit a605c76

Please sign in to comment.