Skip to content

Commit a70f298

Browse files
authored
Add GitHub actions workflow for running tests (#1)
* Add GitHub actions workflow for running tests * Fix file syntax * Use jsontypedef/json-typedef-spec as remote for submodule * Use https for remote url
1 parent 6ba1581 commit a70f298

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: .github/workflows/ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on: push
2+
jobs:
3+
test:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/checkout@v2
7+
- name: Checkout submodules
8+
shell: bash
9+
run: |
10+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
11+
git submodule sync --recursive
12+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
- run: cargo test

Diff for: .gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "json-typedef-spec"]
22
path = json-typedef-spec
3-
url = git@github.com:ucarion/json-typedef-spec.git
3+
url = https://github.com/jsontypedef/json-typedef-spec.git

0 commit comments

Comments
 (0)