Split serialization tests into staging
and regression
#7
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: Cardano Data Lite Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm install | |
- name: Generate code | |
run: npm run codegen | |
- name: Check that generated code was already committed | |
run: | | |
if [[ $(git status --porcelain) ]]; then | |
echo "Error: Uncommitted changes found after running codegen" | |
git diff | |
exit 1 | |
else | |
echo "No uncommitted changes found" | |
fi | |
- name: Typescript typecheck | |
run: npx tsc --noEmit | |
- name: Run API tests | |
run: npm run test-api |