Skip to content

Use stdin and stdout for CI tests to avoid issues #5

Use stdin and stdout for CI tests to avoid issues

Use stdin and stdout for CI tests to avoid issues #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
run: docker build -t openapi-spec-converter:latest .
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'node'
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install test dependencies
run: npm install
- name: Run CI tests inside container
run: ./convert-and-validate-specs.sh