| name: All builds |
| on: [push, pull_request] |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| strategy: |
| matrix: |
| go_version: |
| - stable |
| - oldstable |
| steps: |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| - name: Setup Go |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 |
| with: |
| go-version: ${{ matrix.go_version }} |
| - run: npm install -g mdsf-cli |
| - run: ./.ci.gogenerate.sh |
| - run: ./.ci.gofmt.sh |
| - run: ./.ci.readme.fmt.sh |
| - run: ./.ci.govet.sh |
| - run: go test -v -race ./... |
| test: |
| runs-on: ubuntu-latest |
| strategy: |
| matrix: |
| go_version: |
| - "1.17" |
| - "1.18" |
| - "1.19" |
| - "1.20" |
| - "1.21" |
| - "1.22" |
| - "1.23" |
| - "1.24" |
| steps: |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| - name: Setup Go |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 |
| with: |
| go-version: ${{ matrix.go_version }} |
| - run: go test -v -race ./... |