Skip to content

Commit

Permalink
chore: CI fixes + readme
Browse files Browse the repository at this point in the history
  • Loading branch information
3p3r committed Jan 11, 2023
1 parent b868b9c commit 5032e93
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,25 @@ name: Build and Test
on: [push, pull_request]

jobs:
build-wasm:
name: Build (WASM)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- name: Build
run: npm run build-wasm

build-node:
name: Build (Node)
build:
name: Build (Node Build)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- name: Build
run: npm run build-node

build-rule2rego:
name: Build (Rule2Rego)
bundle:
name: Bundle (Rule2Rego)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- name: Bundle
run: npm run bundle
run: |
npm run build-wasm
npm run bundle
test:
name: Test
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
Grammar for AWS Event Rules: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html

![Syntax Highlighting](highlight.png)

## `rule2rego` utility

```bash
$ npm install -g tree-sitter-eventrule
$ rule2rego --help
Compiles AWS Event Rule pattern JSON to OPA REGO policy.
Usage: rule2rego <rule>.json
```
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5032e93

Please sign in to comment.