Sha256: d1e8a9191830921dce3d98e315d18f68df58e57302d7bea5d885799e24e8af73

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

name: node-tests

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

  schedule:
    - cron: "0 10 * * *"

  workflow_dispatch:
      inputs: {}

jobs:
  build:
    name: Tests with Node ${{ matrix.node }}
    runs-on: "ubuntu-latest"
    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") }}
          restore-keys: >
            ${{ 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

1 entries across 1 versions & 1 rubygems

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