Skip to content

[WIP] feat: add Dockerized testing #5

[WIP] feat: add Dockerized testing

[WIP] feat: add Dockerized testing #5

name: dockerized-test
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
jobs:
dockerized-test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ['3.3', '3.4']
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Build the lib
run: make build
- name: Build the image
run: docker build . -t local/test -f Dockerfile.test --build-arg BASE_IMAGE=public.ecr.aws/lambda/ruby:${{ matrix.ruby_version }}
- name: Run tests
uses: aws/containerized-test-runner-for-aws-lambda@v1
with:
suiteFileArray: ["./test/dockerized/suites/*.json"]

Check failure on line 34 in .github/workflows/dockerized-test.yml

View workflow run for this annotation

GitHub Actions / dockerized-test

Invalid workflow file

The workflow is not valid. .github/workflows/dockerized-test.yml (Line: 34, Col: 25): A sequence was not expected
dockerImageName: local/test
taskFolder: ./test/dockerized/tasks