Skip to content

Commit e9c5ce1

Browse files
committed
Improving testability
1 parent b7b5b79 commit e9c5ce1

51 files changed

Lines changed: 2370 additions & 1789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-deploy.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
name: Build and Deploy
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
jobs:
8-
build-and-deploy:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v1
13-
- uses: actions/cache@v1
14-
with:
15-
path: ~/.cargo
16-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
17-
restore-keys: |
18-
${{ runner.os }}-cargo-
19-
- name: Install trunk
20-
uses: actions-rs/install@v0.1
21-
with:
22-
crate: trunk
23-
version: latest
24-
use-tool-cache: true
25-
- name: Build
26-
run: |
27-
chmod +x ./update-gh-pages.sh
28-
./update-gh-pages.sh
29-
- name: Deploy
30-
uses: JamesIves/github-pages-deploy-action@releases/v3
31-
with:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
BRANCH: gh-pages
34-
FOLDER: docs
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
- uses: actions/cache@v1
14+
with:
15+
path: ~/.cargo
16+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
17+
restore-keys: |
18+
${{ runner.os }}-cargo-
19+
- name: Install trunk
20+
uses: actions-rs/install@v0.1
21+
with:
22+
crate: trunk
23+
version: latest
24+
use-tool-cache: true
25+
- name: Build
26+
run: |
27+
chmod +x ./update-gh-pages.sh
28+
./update-gh-pages.sh
29+
- name: Deploy
30+
uses: JamesIves/github-pages-deploy-action@releases/v3
31+
with:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
BRANCH: gh-pages
34+
FOLDER: docs

.github/workflows/test.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
name: Run tests
2-
3-
on: [push, pull_request]
4-
5-
jobs:
6-
run-tests:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v1
11-
12-
- uses: actions/cache@v1
13-
with:
14-
path: ~/.cargo
15-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
16-
restore-keys: |
17-
${{ runner.os }}-cargo-
18-
19-
- uses: actions/checkout@v1
20-
- name: Check formatting
21-
uses: icepuma/rust-action@master
22-
with:
23-
args: cargo fmt -- --check
24-
25-
- name: Run tests
26-
uses: icepuma/rust-action@master
27-
with:
28-
args: cargo test --workspace
29-
30-
- name: Check for clippy issues
31-
uses: icepuma/rust-action@master
32-
with:
33-
args: cargo clippy --all-targets --workspace -- -Dwarnings
1+
name: Run tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
12+
- uses: actions/cache@v1
13+
with:
14+
path: ~/.cargo
15+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
16+
restore-keys: |
17+
${{ runner.os }}-cargo-
18+
19+
- uses: actions/checkout@v1
20+
- name: Check formatting
21+
uses: icepuma/rust-action@master
22+
with:
23+
args: cargo fmt -- --check
24+
25+
- name: Run tests
26+
uses: icepuma/rust-action@master
27+
with:
28+
args: cargo test --workspace
29+
30+
- name: Check for clippy issues
31+
uses: icepuma/rust-action@master
32+
with:
33+
args: cargo clippy --all-targets --workspace -- -Dwarnings

.gitignore

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
target
2-
*flamegraph.svg
3-
*flamegraph*.svg
4-
*.data
5-
*.data.old
6-
*history.txt
7-
/docs
8-
.idea
9-
10-
*.test_diff
1+
target
2+
*flamegraph.svg
3+
*flamegraph*.svg
4+
*.data
5+
*.data.old
6+
*history.txt
7+
/docs
8+
.idea
9+
10+
*.actual

0 commit comments

Comments
 (0)