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

chore: dependabot workflows #11

Merged
merged 4 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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