CI - Build & Test #6
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: CI - Build & Test | |
on: | |
pull_request: | |
branches: | |
- '*' | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sed -i "s|{{PATHTOREPO}}|$(pwd)|" packages/k8s/tests/test-kind.yaml | |
name: Setup kind cluster yaml config | |
- uses: helm/[email protected] | |
with: | |
config: packages/k8s/tests/test-kind.yaml | |
- run: npm install | |
name: Install dependencies | |
- run: npm run bootstrap | |
name: Bootstrap the packages | |
- run: npm run build-all | |
name: Build packages | |
- run: npm run format-check | |
- name: Check linter | |
run: | | |
npm run lint | |
git diff --exit-code -- ':!packages/k8s/tests/test-kind.yaml' | |
- name: Run tests | |
run: npm run test |