Configure Mend for GitHub Enterprise #152
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: Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| name: Testing on Node ${{matrix.node_version}} | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node_version: [16, 19] | |
| steps: | |
| - name: Checkout Master | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node ${{matrix.node_version}} | |
| uses: actions/setup-node@master | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| - name: Cache Yarn | |
| uses: actions/cache@v2 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-${{matrix.node_version}}-node-modules-${{ hashFiles('yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{matrix.node_version}}-node-modules-${{ hashFiles('yarn.lock') }} | |
| ${{ runner.os }}-${{matrix.node_version}}-node-modules- | |
| - name: Install Dependencies using Yarn | |
| run: yarn install && git checkout yarn.lock | |
| - name: Cache Jest | |
| uses: actions/cache@v2 | |
| with: | |
| path: .cache/jest | |
| key: ${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }} | |
| ${{ runner.os }}-${{matrix.node_version}}-jest- | |
| - name: Test | |
| run: yarn test | |
| env: | |
| CI: true |