Skip to content

Commit

Permalink
refactor: Consolidate test pipeline, run against develop and version/…
Browse files Browse the repository at this point in the history
…2.x.x
  • Loading branch information
CookieCookson committed Dec 9, 2023
1 parent 3f65651 commit 5bfe1ad
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 69 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/test-pr.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/test-push-to-master.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on:
push:
branches: [develop, version/2.x.x]
pull_request:
branches: [develop, version/2.x.x]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 18.x

- name: Install Dependencies
run: npm ci

- name: Prettier
run: npm run test:format

- name: ESLint
run: npm run lint

- name: Build
run: npm run build --if-present

- name: Test
run: npm run test
env:
CI: true
LRS_CREDENTIALS_ARRAY: ${{ secrets.LRS_CREDENTIALS_ARRAY }}

- name: Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5bfe1ad

Please sign in to comment.