fix: check motor for nil #1154
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: Test lint | |
| "on": | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: "0 9 * * *" | |
| pull_request: {} | |
| jobs: | |
| job: | |
| name: Test build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Check out source repository | |
| uses: actions/checkout@v4 | |
| - name: Cache Freelancer | |
| id: cache-freelancer | |
| uses: actions/cache@v3 | |
| with: | |
| key: ${{ runner.os }}-${{ github.workspace }}/discovery-freelancer-lint | |
| path: "${{ github.workspace }}/fl-data" | |
| - name: Checkout Freelancer | |
| uses: darklab8/fl-darkstat/.github/actions/checkout-freelancer@master | |
| with: | |
| freelancer-mod: discovery | |
| freelancer-folder: ${{ github.workspace }}/fl-data | |
| - run: ls ./fl-data | |
| - name: Install Go | |
| uses: darklab8/infra/.github/actions/install-go@master | |
| - name: Install Taskfile | |
| uses: darklab8/infra/.github/actions/install-taskfile@master | |
| - name: Install Templ | |
| uses: darklab8/infra/.github/actions/install-templ@master | |
| - name: generate Templ files | |
| run: templ generate | |
| - name: Install Swag | |
| uses: darklab8/infra/.github/actions/install-swag@master | |
| - name: Build swag go stuff | |
| run: swag init --parseDependency | |
| - name: add versions | |
| run: task build-version | |
| - name: Patch freelancer discovery to latest | |
| uses: darklab8/fl-darkstat/.github/actions/patch-disco@master | |
| with: | |
| freelancer-folder: ${{ github.workspace }}/fl-data | |
| - name: lint things | |
| uses: golangci/golangci-lint-action@v8 |