Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Apr 5, 2024
1 parent cd4cea9 commit 17e1392
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches:
- main
jobs:
build:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Install Quary CLI
uses: quarylabs/install-quary-cli-action@main
with:
version: "latest"
- run: quary build -c
test:
permissions:
contents: read
id-token: write
needs: build
runs-on: ubuntu-latest
steps:
- name: Install Quary CLI
uses: quarylabs/install-quary-cli-action@main
with:
version: "latest"
- run: quary test
39 changes: 39 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: pr-checks
on:
pull_request:
branches:
- main
jobs:
quary-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Quary CLI
uses: quarylabs/install-quary-cli-action@main
with:
version: "latest"
- run: quary compile
quary-build-dry-run:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Quary CLI
uses: quarylabs/install-quary-cli-action@main
with:
version: "latest"
- run: quary build -d
quary-test:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Quary CLI
uses: quarylabs/install-quary-cli-action@main
with:
version: "latest"
- run: quary test -s --mode skip
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ Install the recommended extensions if prompted by VS Code
To interact with the data models, navigate to any .sql file and use the following shortcuts:

`CMD+D (ctrl on Windows)`: Open the model documentation

`CMD+Enter (ctrl on Windows)`: View the transformed data

0 comments on commit 17e1392

Please sign in to comment.