Skip to content

Commit

Permalink
chore: dependabot workflows (#11)
Browse files Browse the repository at this point in the history
* chore: add dependabot workflow

* chore: add test workflow

* chore: add newline character to .gitignore

* chore: disable windows tests
  • Loading branch information
jeswr authored Oct 25, 2023
1 parent 3c47764 commit 2dc8f28
Show file tree
Hide file tree
Showing 7 changed files with 4,111 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- "dependencies"
19 changes: 19 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Enable automerge on dependabot PRs

on:
pull_request_target:

jobs:
automerge:
name: Enable automerge on dependabot PRs
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash
env:
GH_TOKEN: ${{ github.token }}
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
strategy:
matrix:
node-version: [18.x, 20.x]
os: [ ubuntu-latest, macos-latest ]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: yarn test
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dist/**
node_modules/**
components/**
package-lock.json
yarn.lock
tsconfig.tsbuildinfo
componentsjs-error-state.json
RELEASE
RELEASE
2 changes: 1 addition & 1 deletion test/orch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let manager : ComponentsManager<unknown>;

describe("orch", () => {
before( async() => {
manager = await makeComponentsManager('./config.jsonld',cwd());
manager = await makeComponentsManager('./config/config.jsonld',cwd());
});

it("can do test00.n3 with test00.rule.n3", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/pol.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let manager : ComponentsManager<unknown>;
describe("pol", () => {

before( async() => {
manager = await makeComponentsManager('./config.jsonld',cwd());
manager = await makeComponentsManager('./config/config.jsonld',cwd());
});

beforeEach(() => {
Expand Down
Loading

0 comments on commit 2dc8f28

Please sign in to comment.