You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
797 B

  1. name: Test
  2. on: [ push, pull_request ]
  3. jobs:
  4. test:
  5. strategy:
  6. matrix:
  7. go-version: [ 1.14.x ]
  8. goarch: [ "amd64" ]
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Install Go
  12. uses: actions/setup-go@v1
  13. with:
  14. go-version: ${{ matrix.go-version }}
  15. env:
  16. GOARCH: ${{ matrix.goarch }}
  17. - name: Checkout code
  18. uses: actions/checkout@v2
  19. - name: Postgres
  20. run: docker run --rm --name hermez-db-test -p 5432:5432 -e POSTGRES_DB=hermez -e POSTGRES_USER=hermez -e POSTGRES_PASSWORD="${{ secrets.POSTGRES_PASS }}" -d postgres
  21. - name: Test
  22. env:
  23. POSTGRES_PASS: ${{ secrets.POSTGRES_PASS }}
  24. ETHCLIENT_DIAL_URL: ${{ secrets.ETHCLIENT_DIAL_URL }}
  25. GOARCH: ${{ matrix.goarch }}
  26. run: go test -p 1 ./...