Skip to content

Update public.ecr.aws/docker/library/golang Docker tag to v1.23.2 #116

Update public.ecr.aws/docker/library/golang Docker tag to v1.23.2

Update public.ecr.aws/docker/library/golang Docker tag to v1.23.2 #116

Workflow file for this run

---
name: CI pipeline
on: ['push']
jobs:
menu-scraper-lib-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.9'
- name: Install dependencies
working-directory: ./menu-scraper-lib
run: go get -d ./...
- name: Run tests
working-directory: ./menu-scraper-lib
run: go test -v ./test
- name: Check if code is formatted using go fmt
if: '!cancelled()'
working-directory: ./menu-scraper-lib
run: test -z $(gofmt -l .)
- name: Lint code
if: '!cancelled()'
uses: golangci/golangci-lint-action@v6
with:
working-directory: ./menu-scraper-lib
version: v1.58.1
menu-scraper-lambda-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.9'
- name: Install dependencies
working-directory: ./menu-scraper-lambda
run: go get -d ./...
- name: Build
working-directory: ./menu-scraper-lambda
run: go build ./bin/main.go
- name: Check if code is formatted using go fmt
if: '!cancelled()'
working-directory: ./menu-scraper-lambda
run: test -z $(gofmt -l .)
- name: Lint code
if: '!cancelled()'
uses: golangci/golangci-lint-action@v6
with:
working-directory: ./menu-scraper-lambda
version: v1.58.1
alexa-skill-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: './alexa-skill/lambda-pdm/pyproject.toml'
- name: Install PDM
run: pip install pdm
- name: Install dependencies
working-directory: ./alexa-skill/lambda-pdm
run: pdm install
- name: Run tests
working-directory: ./alexa-skill/lambda-pdm
run: pdm run test
- name: Lint code
if: '!cancelled()'
working-directory: ./alexa-skill/lambda-pdm
run: pdm run lint
- name: Check if code is formatted using ruff
if: '!cancelled()'
working-directory: ./alexa-skill/lambda-pdm
run: pdm run check-format
- name: Check typing
if: '!cancelled()'
working-directory: ./alexa-skill/lambda-pdm
run: pdm run typecheck
sam-app-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup SAM
uses: aws-actions/setup-sam@v2
with:
use-installer: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Verify configuration
working-directory: ./sam-app
run: sam validate
- name: Build
working-directory: ./sam-app
run: sam build --use-container
- name: Integration test
working-directory: ./sam-app
run: ./performLocalIntegrationTest.sh
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: sam-integration-testing-artifacts
path: sam-app/testing_artifacts
verify-architecture-diagram:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Recompute architecture diagram
working-directory: ./docs/architecture
run: ./buildSvg.sh
- name: Check if architecture diagram is up to date
run: git add --all && git diff --exit-code --stat HEAD --