This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
feat(csi-415): avoid ISPA crash loop on starting. refactoring to add new abstraction - PeerServer #82
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main CI (install/cache + lint/tests) | |
on: | |
workflow_call: | |
pull_request: | |
branches: | |
- '*' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
install-and-cache: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ssh-key: "${{ secrets.COMMIT_KEY }}" | |
- name: Use get-npm-cache Action | |
id: npm-cache-dir | |
uses: ./.github/actions/npm-cache | |
- run: npm ci | |
- name: Save npm cache | |
id: npm-cache-save | |
uses: actions/cache/save@v4 | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.cache-dir }} | |
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}" | |
lint-and-test: | |
runs-on: ubuntu-latest | |
needs: install-and-cache | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use get-npm-cache Action | |
uses: ./.github/actions/npm-cache | |
- run: npm ci | |
- run: npm run build | |
- run: npm run lint | |
- run: npm run test | |
- name: Run integration tests | |
run: | | |
docker compose build | |
docker compose up -d | |
echo "waiting for 15sec before tests run..." && sleep 15 | |
npm run test:int | |
docker compose down -v |