Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ BREAKING CHANGE] Feat/context template #213

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7edd206
feat(templates)!: rework template system
oknozor Nov 29, 2022
0fc20f4
refactor: extract display logic to a decicated module
oknozor Dec 1, 2022
81de634
fix(dot): fix traversal bug with non utf8 path
oknozor Dec 1, 2022
60524eb
test: add test for metadata print
oknozor Dec 1, 2022
c5ff539
fix: fix bats test and gpg secrets
oknozor Dec 1, 2022
af409f0
fix: fix adding secrets producing invalid toml
oknozor Dec 1, 2022
9d3fec5
refactor: improve link display on watch/link
oknozor Dec 1, 2022
9db9e6a
refactor: make profile template context global
oknozor Dec 5, 2022
2a44a68
docs(website): make dark mode default
oknozor Feb 2, 2023
c084930
docs: update doc
oknozor Feb 2, 2023
f83bf4a
chore: gitignore static assets
oknozor Jun 12, 2023
2e28732
fix: fix ssl issues with libgit2
oknozor Jun 12, 2023
cda601e
docs: add repology badge
oknozor Jun 12, 2023
625509d
docs: remove invalid doc link
oknozor Jun 12, 2023
aafbf39
test: fix vendored openssl for bats tests
oknozor Jun 12, 2023
4f48124
test: fix unlink test on CI
oknozor Jun 12, 2023
a5fa4f5
docs: migrate to vuepress
oknozor Nov 1, 2023
bc8d283
feat: add OS template var
oknozor Nov 2, 2023
0e193aa
docs: add custom hljs theme
oknozor Nov 4, 2023
203caed
docs: remove legacy website
oknozor Nov 4, 2023
9f5f84a
ci: add multiarc ci and next test
oknozor Nov 4, 2023
1303bf6
chore: fmt all
oknozor Nov 4, 2023
a5d8f78
test: fix tests
oknozor Nov 4, 2023
037ab41
test: update rust docker version
oknozor Nov 4, 2023
331f438
chore: update git attributes
oknozor Nov 5, 2023
aa2f3d9
test: try on one thread
oknozor Nov 5, 2023
5b41a49
chore: update submodules
oknozor Jan 16, 2024
6fcb6de
ci: try to fix coverage
oknozor Jan 16, 2024
16afbef
test: fix macos test
oknozor Jan 16, 2024
2f55612
test(bats): add tilde shortand to bashrc home
oknozor Mar 5, 2024
b8a63a3
ci: update rust version in bats container
oknozor Mar 5, 2024
184b95e
fix: expand tilde in dotfile paths
oknozor Mar 5, 2024
d051112
test: add debug print
oknozor Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
website/** linguist-documentation
docs/** linguist-documentation
bats-tests/** linguist-documentation
ci/**linguist-documentation
config_examplesi/** linguist-documentation
Expand Down
107 changes: 107 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: Tests for platform ${{ matrix.os }}/${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
target: x86_64-osx
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
coverage: true
conventional_commit_check: true
- os: ubuntu-latest
target: armv7-unknown-linux-musleabihf
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
key: "${{ matrix.os }}-${{ matrix.target }}"

- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest

- name: Collect coverage data
if: ${{matrix.coverage}}
run: cargo llvm-cov nextest --lcov --output-path lcov.info

- name: Upload coverage to Codecov
if: ${{matrix.coverage}}
uses: codecov/codecov-action@v3
with:
files: lcov.info
fail_ci_if_error: true

- name: Test with latest nextest release
if: ${{ ! matrix.coverage }}
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --test-threads=1


lints:
name: Lints & Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
continue-on-error: false
with:
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
continue-on-error: false
with:
command: clippy
args: -- -D warnings
e2e:
name: End to end tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run bats test harnesss
run: |
docker build -t bombadil-tests ./
docker run bombadil-tests
80 changes: 0 additions & 80 deletions .github/workflows/CI.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
website/static/**
.idea
*.bk
test_tmp*
Expand Down
Loading
Loading