Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests not run on PRs #33

Open
ljones140 opened this issue Sep 26, 2024 · 0 comments
Open

Tests not run on PRs #33

ljones140 opened this issue Sep 26, 2024 · 0 comments

Comments

@ljones140
Copy link
Contributor

There's no tests run on this repository to prevent PRs being merged.

So we should put some tests in and ensure they are run before on PRs to master and on releases of the NPM package to GitHub packages

Will probably look like this action I asked Copilot to make

name: Node.js CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x, 16.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
    - run: npm install
    - run: npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant