diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac33c002..86548fc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,11 +51,19 @@ jobs: - name: Lint run: yarn tslint && yarn format build: - runs-on: ubuntu-latest + needs: lint + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [8.x, 10.x, 12.x, 14.x] + os: [ windows-latest, macos-latest, ubuntu-latest ] steps: - - name: checkout + - name: Checkout uses: actions/checkout@v2 - + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} - name: Get yarn cache directory path id: yarn_cache_dir_path run: echo "::set-output name=dir::$(yarn cache dir)"