tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
xata_id_extension
1
fork
atom
PostgreSQL extension for generating Xata-style xata_id unique identifiers (rec_<20_chars>) using Rust and pgrx.
1
fork
atom
overview
issues
pulls
pipelines
ci: setup github actions
tsiry-sandratraina.com
8 months ago
f66429df
a49f5126
+46
2 changed files
expand all
collapse all
unified
split
.github
workflows
ci.yml
.tangled
workflows
ci.yml
+29
.github/workflows/ci.yml
···
1
1
+
name: ci
2
2
+
on:
3
3
+
push:
4
4
+
branches:
5
5
+
- main
6
6
+
pull_request:
7
7
+
branches:
8
8
+
- main
9
9
+
jobs:
10
10
+
fmt:
11
11
+
runs-on: ubuntu-latest
12
12
+
steps:
13
13
+
- uses: actions/checkout@v2
14
14
+
- name: Setup Fluent CI
15
15
+
uses: fluentci-io/setup-fluentci@v5
16
16
+
with:
17
17
+
wasm: true
18
18
+
plugin: rust
19
19
+
args: setup
20
20
+
env:
21
21
+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22
22
+
- name: Run fmt
23
23
+
run: |
24
24
+
type cargo
25
25
+
cargo fmt --all --check
26
26
+
- name: Run test
27
27
+
run: |
28
28
+
type cargo
29
29
+
cargo test
+17
.tangled/workflows/ci.yml
···
1
1
+
when:
2
2
+
- event: ["push", "pull_request"]
3
3
+
branch: ["main"]
4
4
+
5
5
+
dependencies:
6
6
+
nixpkgs:
7
7
+
- cargo
8
8
+
- rustc
9
9
+
- rustfmt
10
10
+
11
11
+
steps:
12
12
+
- name: "cargo fmt"
13
13
+
command: |
14
14
+
cargo fmt --all --check
15
15
+
- name: "cargo test"
16
16
+
command: |
17
17
+
cargo test