fix: update labsnet to match test7.2 #120
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: gnoland | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "projects/gnoland/**" | |
| - ".github/workflows/gnoland.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "projects/gnoland/**" | |
| - ".github/workflows/gnoland.yml" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| test-path: | |
| - gno.land/r/linker000/discord/role/v0 | |
| - gno.land/r/linker000/discord/user/v0 | |
| - gno.land/r/linker000/discord/keyring/v0 | |
| # - gno.land/r/buidlthefuture000/events/gnolandlaunch | |
| # - gno.land/r/buidlthefuture000/events/gnoplan001 | |
| # - gno.land/r/buidlthefuture000/events/onsite001 | |
| # - gno.land/r/frames000 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Check for Caddy changes | |
| uses: dorny/paths-filter@v2 | |
| id: changes | |
| with: | |
| filters: | | |
| gno-land: | |
| - 'projects/gnoland/gno.land/**' | |
| - name: Run tests for ${{ matrix.test-path }} | |
| run: | | |
| cd projects/gnoland | |
| make test path=${{ matrix.test-path }} | |
| deploy-caddy: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| environment: labsnet-prod | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Check for Caddy changes | |
| uses: dorny/paths-filter@v2 | |
| id: changes | |
| with: | |
| filters: | | |
| caddy: | |
| - 'projects/gnoland/caddy/**' | |
| - name: Setup Fly CLI | |
| if: steps.changes.outputs.caddy == 'true' | |
| uses: superfly/flyctl-actions/setup-flyctl@master | |
| - name: Deploy Caddy to Fly.io | |
| if: steps.changes.outputs.caddy == 'true' | |
| run: | | |
| cd projects/gnoland/caddy | |
| flyctl deploy --remote-only | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_CADDY }} | |
| deploy-gnoland: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| environment: labsnet-prod | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Deploy Gnoland (TODO) | |
| run: | | |
| echo "Gnoland deployment not yet implemented" |