name: Build on: [ push, pull_request ] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: - ubuntu-latest - macos-latest - windows-latest node_version: - 15 name: Node ${{ matrix.node_version }} on ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - name: Build Reason run: "echo ref: ${{github.ref}} event: ${{github.event_name}}" - name: Setup Node.js environment uses: actions/setup-node@v2 with: node-version: ${{ matrix.node_version }} - name: NPM install with caching uses: bahmutov/npm-install@v1 - name: Yarn install (for lage) run: yarn install - name: Build run: npm run build - name: Run Tests run: npm test