refactor: simplify provider management and add Type method #9
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: Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.23" | |
| - name: Check gofmt | |
| run: | | |
| files=$(gofmt -s -l .) | |
| echo "$files" | |
| test -z "$files" | |
| - run: go vet ./... | |
| - uses: dominikh/[email protected] | |
| with: | |
| install-go: false |