Skip to content

Commit

Permalink
ci: add basic workflow (#3)
Browse files Browse the repository at this point in the history
Expecting further packages. But there's only one for now (opa-react).

Branch protection rules have been set up for branch "main".

Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored Jun 26, 2024
1 parent 8891381 commit 5c6e617
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main

# When a new revision is pushed to a PR, cancel all in-progress CI runs for that
# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
packages:
name: test packages
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
pkg: [opa-react]
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "21.x"
- run: corepack enable
- name: setup and test
run: |
yarn
yarn test
working-directory: packages/${{ matrix.pkg }}

0 comments on commit 5c6e617

Please sign in to comment.