Skip to content

fix(gitlab): install ruby in ci image #484

fix(gitlab): install ruby in ci image

fix(gitlab): install ruby in ci image #484

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
bundle config path vendor/bundle
bundle install
- name: Lint
run: bundle exec rubocop
unit-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
ruby-version: [3.2, 3.3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
bundle config path vendor/bundle
bundle install
- name: Run tests
run: bundle exec rake test
integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
runtime-param: [3.2, 3.3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node 16
uses: actions/setup-node@v4
with:
node-version: 16
- name: Cache Node modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Serverless Framework
run: sudo yarn global add serverless@3 --prefix /usr/local
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
working-directory: integration_tests
run: yarn install
- name: Install Crossbuild dependencies
run: |
sudo apt-get update --allow-releaseinfo-change --fix-missing
sudo apt install -y qemu-user-static binfmt-support
- name: Run tests
env:
BUILD_LAYERS: true
DD_API_KEY: ${{ secrets.DD_API_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
RUNTIME_PARAM: ${{ matrix.runtime-param }}
ARCH: amd64
run: ./scripts/run_integration_tests.sh