Skip to content

Commit

Permalink
✨ feature/pipelines (#352)
Browse files Browse the repository at this point in the history
* feat: Run dependabot against develop and version/2.x.x

* feat: Run CodeQL against develop and version/2.x.x

* refactor: Consolidate test pipeline, run against develop and version/2.x.x
  • Loading branch information
CookieCookson authored Dec 12, 2023
1 parent 6d0e6f0 commit 8b1036a
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 78 deletions.
16 changes: 9 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "npm"
directory: /
target-branch: develop
schedule:
interval: "monthly"

- package-ecosystem: "npm"
directory: /
target-branch: version/2.x.x
schedule:
interval: "monthly"
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ name: "CodeQL"

on:
push:
branches: [master]
branches: [develop, version/2.x.x]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [develop, version/2.x.x]
schedule:
- cron: '0 3 * * 3'

Expand Down
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 8b1036a

Please sign in to comment.