Merge pull request #33 from blazejkustra/entity-custom-name #257
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test_build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18, 20] | |
name: Node ${{ matrix.node }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies ⏳ | |
run: npm ci | |
- name: Build 🔧 | |
run: npm run build | |
- name: Typecheck 🏷️ | |
run: npm run typecheck | |
- name: Lint 🧹 | |
run: npm run lint | |
- name: Test Unit 🧪 | |
run: npm run test | |
- name: Test types 🛠️ | |
run: npm run test:types | |
- name: Setup DynamoDB Local | |
uses: rrainn/dynamodb-action@v3.0.0 | |
- name: Sleep for 10 seconds | |
run: sleep 10s | |
shell: bash | |
- name: Test E2E ⚙️ | |
run: npm run test:e2e | |
- name: Coverage 📝 | |
run: npm run coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@1.1.3 | |
continue-on-error: true | |
with: | |
path-to-lcov: ./coverage/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} |