docs: update docs folder with a base set of docs and create pages flo… #189
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: MaaS API | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - 'maas-api/**' | |
| permissions: | |
| actions: read | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: maas-api | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: maas-api/go.mod | |
| cache: true | |
| cache-dependency-path: maas-api/go.sum | |
| - name: Check code formatting | |
| run: make fmt-check | |
| - name: Run tests | |
| run: make test | |
| - name: Upload coverage reports | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage-reports | |
| path: | | |
| maas-api/coverage.out | |
| maas-api/coverage.html | |
| retention-days: 30 | |
| - name: Build image | |
| run: make build-image | |
| - name: Login to Quay.io | |
| if: github.event_name == 'push' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: quay.io | |
| username: ${{ secrets.APP_QUAY_USERNAME }} | |
| password: ${{ secrets.APP_QUAY_TOKEN }} | |
| - name: Push image to Quay.io | |
| if: github.event_name == 'push' | |
| run: | | |
| make build-push-image | |
| make build-push-image -e TAG=${{ github.sha }} |