Skip to content

INCIDEN-827 Restore cookie preferences form #219

INCIDEN-827 Restore cookie preferences form

INCIDEN-827 Restore cookie preferences form #219

Workflow file for this run

name: Test Sidecar Container
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.12.1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build sidecar container
uses: docker/build-push-action@v5
with:
context: basic-auth-sidecar
push: false
tags: "basic-auth-sidecar-test:latest"
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: build sidecar httpie container
uses: docker/build-push-action@v5
with:
context: basic-auth-sidecar
file: basic-auth-sidecar/Dockerfile.httpie
push: false
tags: "basic-auth-sidecar-test-httpie:latest"
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run sidecar tests
run: yarn test:sidecar