Skip to content

fix: services/pubsub-emulator/Dockerfile to reduce vulnerabilities #305

fix: services/pubsub-emulator/Dockerfile to reduce vulnerabilities

fix: services/pubsub-emulator/Dockerfile to reduce vulnerabilities #305

Workflow file for this run

name: Tests
on: [push]
jobs:
api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./services/api
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: getong/[email protected]
with:
elasticsearch version: "7.9.3"
host port: 9200
container port: 9200
host node port: 9300
node port: 9300
discovery type: "single-node"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
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: Run Lint
run: yarn lint
- name: Run Tests
run: yarn test --silent