Sha256: e4bec001e20d9b9fb699590e717e9b3d6b50b384ef50d055126c130117e483ac

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

---
name: node-tests

on:
  pull_request_target:
  push:
    branches:
      - main
  workflow_dispatch:
    inputs: {}

jobs:
  build:
    name: Tests with Node ${{ matrix.node }}
    runs-on: "ubuntu-latest"
    if: |
      github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
      github.actor != 'dependabot[bot]'
    strategy:
      fail-fast: false
      matrix:
        node: [<%= options.node_versions.map {|v| Gem::Version.new(v).canonical_segments.first.to_s.inspect }.join(", ") %>]

    steps:
      - uses: actions/checkout@v1

      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: >
            ${{ runner.os }}-${{ matrix.node }}-npm-${{ hashFiles('package.json') }}

      - name: Set up Node
        uses: actions/setup-node@v2-beta
        with:
          node-version: ${{ matrix.node }}

      - name: Install npm dependencies
        run: |
          yarn install

      - name: Run Tests
        run: |
          yarn test:ci
          yarn lint

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dopstick-0.0.11 lib/dopstick/generator/npm/templates/tests_workflow.erb
dopstick-0.0.10 lib/dopstick/generator/npm/templates/tests_workflow.erb