Skip to content

Commit f91e126

Browse files
committed
Add Github workflows for CI
1 parent bd1feaa commit f91e126

File tree

5 files changed

+78
-60
lines changed

5 files changed

+78
-60
lines changed

.github/workflows/javascript.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: JavaScript
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Install dependencies
15+
run: yarn
16+
- name: Expand liquid
17+
run: yarn expand-liquid vanilla-js
18+
- name: Install workspace dependencies
19+
run: yarn
20+
- name: Generate types
21+
run: yarn typegen
22+
- name: Test
23+
run: yarn test-js

.github/workflows/payment-methods.rust.default.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/rust.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
checks:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Add rustfmt and clippy
18+
run: rustup component add rustfmt clippy
19+
- name: Install node dependencies
20+
run: yarn
21+
- name: Expand liquid
22+
run: yarn expand-liquid rust
23+
- name: Run cargo fmt
24+
run: cargo fmt --check
25+
- name: Run clippy
26+
run: cargo clippy -- -D warnings
27+
- name: Run tests
28+
run: cargo test
29+
- name: Add wasm32-wasi target
30+
run: rustup target add wasm32-wasi
31+
- name: Build with wasm32-wasi target
32+
run: cargo build --release --target wasm32-wasi

.github/workflows/shipping-rate-presenter.rust.default.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/typescript.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: TypeScript
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Install dependencies
15+
run: yarn
16+
- name: Expand liquid
17+
run: yarn expand-liquid typescript
18+
- name: Install workspace dependencies
19+
run: yarn
20+
- name: Generate types
21+
run: yarn typegen
22+
- name: Test
23+
run: yarn test-ts

0 commit comments

Comments
 (0)