Merge pull request #276 from Uniswap/fix/ci-sha-pin-github-actions #266
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| node: ['10.x', '12.x'] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1 | |
| - uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: npm install -g yarn | |
| - id: yarn-cache | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1 | |
| with: | |
| path: ${{ steps.yarn-cache.outputs.dir }} | |
| key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ matrix.os }}-yarn- | |
| - run: yarn | |
| - run: yarn lint | |
| - run: yarn test |