feat(test): improve the go tests #689
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: Test JavaScript Examples | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test JavaScript Examples | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./examples/developer-hub-javascript | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Format with prettier | |
run: npm run format:diff | |
- name: Lint with ESLint | |
run: npm run lint | |
- name: Test with jest | |
run: npm run test |