Skip to content

Commit

Permalink
chore(ci): basic first cut of the CI process (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Jeffery <[email protected]>
  • Loading branch information
d-jeffery and d-jeffery authored Jul 27, 2023
1 parent d66ee19 commit 31a0fe5
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @openfga/core
13 changes: 13 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
dependencies:
patterns:
- "*"
allow:
- dependency-type: "production"

34 changes: 34 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
- main

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
always-auth: false
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npm run compile
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'

0 comments on commit 31a0fe5

Please sign in to comment.