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.

82 lines
2.0 KiB

  1. name: Tests
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - master
  7. - release/**
  8. jobs:
  9. cleanup-runs:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: rokroskar/workflow-run-cleanup-action@master
  13. env:
  14. GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
  15. if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
  16. build:
  17. name: Build
  18. runs-on: ubuntu-latest
  19. steps:
  20. - uses: actions/setup-go@v2-beta
  21. - name: Set GOBIN
  22. run: |
  23. echo "::add-path::$(go env GOPATH)/bin"
  24. - uses: actions/checkout@v2
  25. - name: install
  26. run: make install install_abci
  27. # Cache bin
  28. - uses: actions/cache@v1
  29. with:
  30. path: ~/go/bin
  31. key: ${{ runner.os }}-go-tm-binary
  32. test_abci_apps:
  33. runs-on: ubuntu-latest
  34. needs: Build
  35. steps:
  36. - uses: actions/setup-go@v2-beta
  37. - name: Set GOBIN
  38. run: |
  39. echo "::add-path::$(go env GOPATH)/bin"
  40. - uses: actions/checkout@v2
  41. - uses: actions/cache@v1
  42. with:
  43. path: ~/go/bin
  44. key: ${{ runner.os }}-go-tm-binary
  45. - name: test_abci_apps
  46. run: abci/tests/test_app/test.sh
  47. shell: bash
  48. test_abci_cli:
  49. runs-on: ubuntu-latest
  50. needs: Build
  51. steps:
  52. - uses: actions/setup-go@v2-beta
  53. - name: Set GOBIN
  54. run: |
  55. echo "::add-path::$(go env GOPATH)/bin"
  56. - uses: actions/checkout@v2
  57. - uses: actions/cache@v1
  58. with:
  59. path: ~/go/bin
  60. key: ${{ runner.os }}-go-tm-binary
  61. - run: abci/tests/test_cli/test.sh
  62. shell: bash
  63. test_apps:
  64. runs-on: ubuntu-latest
  65. needs: Build
  66. steps:
  67. - uses: actions/setup-go@v2-beta
  68. - name: Set GOBIN
  69. run: |
  70. echo "::add-path::$(go env GOPATH)/bin"
  71. - uses: actions/checkout@v2
  72. - uses: actions/cache@v1
  73. with:
  74. path: ~/go/bin
  75. key: ${{ runner.os }}-go-tm-binary
  76. - name: test_apps
  77. run: test/app/test.sh
  78. shell: bash