github.com/go-graphite/carbonapi@v0.17.0/.github/workflows/tests.yml (about) 1 name: Tests 2 3 on: 4 merge_group: 5 push: 6 branches: [ main ] 7 pull_request: 8 branches: [ main ] 9 jobs: 10 11 tests: 12 name: Test code 13 runs-on: ubuntu-22.04 14 strategy: 15 matrix: 16 go: 17 - ^1.21 18 - ^1.22 19 - ^1 20 steps: 21 22 - name: Set up Go 23 uses: actions/setup-go@v5 24 with: 25 go-version: ${{ matrix.go }} 26 27 - name: Check out code into the Go module directory 28 uses: actions/checkout@v4 29 with: 30 fetch-depth: 200 31 32 - name: Install packaging dependencies 33 run: | 34 sudo apt-get install libcairo2-dev mercurial pkg-config wget -y 35 36 - name: Run tests 37 run: | 38 make test 39 make 40 - name: Run e2e tests 41 run: | 42 ./e2e_test.sh 43 - name: Run config integration tests 44 run: | 45 ./config_tests.sh 46 47 - name: Check packaging 48 if: matrix.go == '^1' 49 env: 50 BUILD_PACKAGES: false 51 run: | 52 wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/build.sh" && chmod +x ./build.sh 53 ./build.sh carbonapi