| name: Test | |
| concurrency: | |
| group: test-${{ github.event_name }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| jobs: | |
| go-test: | |
| name: Go Test | |
| runs-on: ubuntu-latest | |
| services: | |
| dind: | |
| image: docker:dind-rootless | |
| ports: | |
| - 2375:2375 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| check-latest: true | |
| go-version-file: 'go.mod' | |
| - name: Run test | |
| run: | | |
| go version | |
| go test $(go list ./... | grep -Ev "github.com/metatube-community/metatube-sdk-go/translate") | |