Update gh action variables #144
This file contains hidden or 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: Continuous Integration | |
| on: pull_request | |
| jobs: | |
| linter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| - name: Install package | |
| run: yarn install | |
| - name: Run the linter | |
| run: yarn lint | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| - name: Install package | |
| run: yarn install | |
| - name: Run Tests | |
| run: yarn test --ci --reporters=default --reporters=jest-junit | |
| env: | |
| CONDUCTOR_SERVER_URL: ${{ vars.SERVER_URL }} | |
| CONDUCTOR_AUTH_KEY: ${{ secrets.AUTH_KEY }} | |
| CONDUCTOR_AUTH_SECRET: ${{ secrets.AUTH_SECRET }} | |
| - name: Publish Test Results | |
| if: always() | |
| uses: dorny/test-reporter@v1 | |
| with: | |
| name: Test report | |
| path: reports/jest-*.xml | |
| reporter: jest-junit |