-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
236e434
commit e4a9c10
Showing
118 changed files
with
8,006 additions
and
4,397 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,54 @@ | ||
name: derive-typescript | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
paths: [crates/derive-typescript/**] | ||
pull_request: | ||
branches: [master] | ||
paths: [crates/derive-typescript/**] | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
submodules: false | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.72.0 | ||
default: true | ||
target: x86_64-unknown-linux-musl | ||
|
||
- run: sudo apt install -y musl-tools | ||
|
||
- name: Login to GitHub container registry | ||
# TODO(johnny): Uncomment once merged. | ||
# if: ${{ github.ref == 'refs/heads/master' }} | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | \ | ||
docker login --username ${{ github.actor }} --password-stdin ghcr.io | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | | ||
crates/derive-typescript | ||
- name: build `derive-typescript` | ||
run: cd crates/derive-typescript && cargo build --target x86_64-unknown-linux-musl --release | ||
|
||
- name: test `derive-typescript` | ||
run: cd crates/derive-typescript && cargo test --target x86_64-unknown-linux-musl --release | ||
|
||
- name: package docker image | ||
run: docker build -t ghcr.io/estuary/derive-typescript:dev crates/derive-typescript/ | ||
|
||
- name: push docker image | ||
# TODO(johnny): Uncomment once merged. | ||
# if: ${{ github.ref == 'refs/heads/master' }} | ||
run: docker push ghcr.io/estuary/derive-typescript:dev |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.