|
| 1 | +name: Coreth |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - master |
| 6 | + pull_request: |
| 7 | + merge_group: |
| 8 | + types: [checks_requested] |
| 9 | + |
| 10 | +jobs: |
| 11 | + lint_test: |
| 12 | + name: Lint |
| 13 | + runs-on: ubuntu-latest |
| 14 | + defaults: |
| 15 | + run: |
| 16 | + working-directory: ./graft/coreth |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + - uses: ./.github/actions/setup-go-for-project |
| 20 | + - name: Run all lint checks |
| 21 | + run: ./scripts/run_task.sh lint-all-ci |
| 22 | + - name: Check go.mod and go.sum are up-to-date |
| 23 | + run: ./scripts/run_task.sh check-go-mod-tidy |
| 24 | + |
| 25 | + unit_test: |
| 26 | + name: Unit Tests (${{ matrix.os }}) |
| 27 | + runs-on: ${{ matrix.os }} |
| 28 | + defaults: |
| 29 | + run: |
| 30 | + working-directory: ./graft/coreth |
| 31 | + strategy: |
| 32 | + fail-fast: false |
| 33 | + matrix: |
| 34 | + os: [macos-latest, ubuntu-22.04, ubuntu-latest] |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v4 |
| 37 | + - uses: ./.github/actions/setup-go-for-project |
| 38 | + - run: ./scripts/run_task.sh build-test |
| 39 | + - run: ./scripts/run_task.sh coverage |
| 40 | + |
| 41 | + e2e_warp: |
| 42 | + name: E2E Warp Tests |
| 43 | + runs-on: ubuntu-latest |
| 44 | + steps: |
| 45 | + - name: Git checkout |
| 46 | + uses: actions/checkout@v4 |
| 47 | + with: |
| 48 | + fetch-depth: 0 |
| 49 | + - name: Run Warp E2E Tests |
| 50 | + uses: ./.github/actions/run-monitored-tmpnet-cmd |
| 51 | + with: |
| 52 | + run: ./scripts/run_task.sh test-e2e-warp-ci |
| 53 | + working_directory: ./graft/coreth |
| 54 | + artifact_prefix: warp |
| 55 | + prometheus_url: ${{ secrets.PROMETHEUS_URL || '' }} |
| 56 | + prometheus_push_url: ${{ secrets.PROMETHEUS_PUSH_URL || '' }} |
| 57 | + prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} |
| 58 | + prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} |
| 59 | + loki_url: ${{ secrets.LOKI_URL || '' }} |
| 60 | + loki_push_url: ${{ secrets.LOKI_PUSH_URL || '' }} |
| 61 | + loki_username: ${{ secrets.LOKI_ID || '' }} |
| 62 | + loki_password: ${{ secrets.LOKI_PASSWORD || '' }} |
0 commit comments