Merge pull request #44 from LumeraProtocol/fixTestPipelines #135
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| - '.gitignore' | |
| jobs: | |
| unit-tests: | |
| name: unit-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| - name: Install dependencies | |
| run: go mod download | |
| - name: Run unit tests | |
| run: go test $(go list ./... | grep -v '/tests') -v | |
| integration-tests: | |
| name: integration-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| - name: Run integration tests | |
| run: go test -v -p 1 -count=1 -tags=integration ./... | |
| system-tests: | |
| name: system-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| - name: Install dependencies | |
| run: cd tests/system && go mod download | |
| - name: Install lumera | |
| run: cd tests/scripts && ./install-lumera.sh | |
| - name: Copy CSV file to home directory | |
| run: cp claims.csv ~/ | |
| - name: Run system tests | |
| run: cd tests/system && go test -tags=system_test -v . |