-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introducing the Hasura MongoDB Connector
- Loading branch information
0 parents
commit 4025ffd
Showing
265 changed files
with
113,519 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# this line sources your `.envrc.local` file | ||
source_env_if_exists .envrc.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: nix:deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
binary: | ||
name: deploy::binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ποΈ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Nix β | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
|
||
- name: Link Cachix π | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: '${{ vars.CACHIX_CACHE_NAME }}' | ||
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}' | ||
|
||
- name: Login to GitHub Container Registry π¦ | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: build the crate using nix π¨ | ||
run: nix build --print-build-logs | ||
|
||
- name: Create release π | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mongodb-connector | ||
path: result/bin/mongodb-connector | ||
|
||
docker: | ||
name: deploy::docker | ||
needs: binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ποΈ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Nix β | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
|
||
- name: Link Cachix π | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: '${{ vars.CACHIX_CACHE_NAME }}' | ||
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}' | ||
|
||
- name: Login to GitHub Container Registry π¦ | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy π | ||
run: nix run .#publish-docker-image ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'v*' | ||
pull_request: | ||
|
||
# The build job caches build artifacts which avoids duplicating work between the | ||
# unit and API tests. | ||
jobs: | ||
build: | ||
name: Build the connector | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ποΈ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Nix β | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
|
||
- name: Link Cachix π | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: '${{ vars.CACHIX_CACHE_NAME }}' | ||
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}' | ||
|
||
- name: build the crate π¨ | ||
run: nix build --print-build-logs | ||
|
||
unit_tests: | ||
name: Unit Tests | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ποΈ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Nix β | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
|
||
- name: Link Cachix π | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: '${{ vars.CACHIX_CACHE_NAME }}' | ||
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}' | ||
|
||
- name: run unit tests π¨ | ||
run: nix build .#checks.x86_64-linux.test --print-build-logs | ||
|
||
- name: run linter checks with clippy π¨ | ||
run: nix build .#checks.x86_64-linux.lint --print-build-logs | ||
|
||
- name: audit for reported security problems π¨ | ||
run: nix build .#checks.x86_64-linux.audit --print-build-logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
/.direnv/ | ||
/.envrc.local | ||
/result | ||
|
||
# Ignore arion temporary files | ||
.tmp* |
Oops, something went wrong.