chore(version): prepares for next version 1.9.2-dev. #316
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: Pr build | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
generate_proto: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: npm install | |
- run: npm run generate_pb | |
- name: Cache proto | |
uses: actions/upload-artifact@v4 | |
with: | |
name: proto | |
path: ./src/config/generated.* | |
test: | |
needs: generate_proto | |
strategy: | |
matrix: | |
node_version: [ "18", "20", "22" ] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- run: npm install | |
- run: npm install -g [email protected] | |
- uses: actions/download-artifact@v4 | |
with: | |
name: proto | |
path: ./src/config/ | |
- run: tsc | |
- name: Standup Test Docker Services | |
run: cd ./test/externalServices && docker compose up -d | |
- name: Wait for Docker | |
run: sleep 100 | |
- name: Check test containers state | |
run: docker ps -a | |
- name: Install codecov | |
run: npm install codecov -g | |
- name: Run Tests With Coverage | |
run: npm run coverage | |
- name: Run Integration Body Filter Test | |
run: cd ./test/integration && ./integration_test.sh | |
- name: Upload coverage # only upload results from 1 matrix version, not all | |
if: matrix.node_version == '16' | |
run: codecov --token="${{ secrets.CODECOV_TOKEN }}" |