adjust markdown numbering in README #174
Workflow file for this run
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ '**' ] | |
| paths-ignore: [ 'terraform/**' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'src/go.mod' | |
| cache-dependency-path: | | |
| src/go.sum | |
| cdk/go.sum | |
| - name: Unit tests | |
| run: go test -C src -v | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| if: github.ref_name == 'main' | |
| needs: test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install AWS CDK | |
| run: npm install -g aws-cdk | |
| - uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: ${{ vars.AWS_REGION }} | |
| - name: Build | |
| run: CGO_ENABLED=0 go build -C src -tags lambda.norpc -ldflags="-s -w" -o bin/bootstrap main.go | |
| - name: Deploy | |
| env: | |
| APP_ID: ${{ vars.APP_ID }} | |
| ENV_ID: ${{ vars.ENV_ID }} | |
| CONFIG_ID: ${{ vars.CONFIG_ID }} | |
| APP_ENV: "prod" | |
| SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
| run: cd cdk && cdk deploy --require-approval never |