Skip to content

Commit

Permalink
Create github actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz authored Apr 7, 2024
1 parent d95de12 commit d1a7398
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

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

jobs:
build:
name: Build Grammar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
run: npm ci
- name: Build Tool
run: npm run build:grammar
- name: Ensure no diff
run: git diff --exit-code

test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
run: npm ci
- name: Run Tests
run: npm run test

0 comments on commit d1a7398

Please sign in to comment.