Skip to content

Commit

Permalink
ci: disable macos
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Sep 18, 2024
1 parent 8341b99 commit 170a9c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: CI

on:
Expand All @@ -19,8 +18,8 @@ jobs:
strategy:
matrix:
include:
- os: macos-latest
target: x86_64-osx
# - os: macos-latest
# target: x86_64-osx
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
coverage: true
Expand All @@ -43,14 +42,18 @@ jobs:

- name: Collect coverage data
if: ${{matrix.coverage}}
run: cargo llvm-cov nextest --lcov --output-path lcov.info
uses: actions-rs/cargo@v1
with:
command: llvm-cov
args: nextest --lcov --output-path lcov.info --test-threads=1

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

- name: Test with latest nextest release
if: ${{ ! matrix.coverage }}
Expand All @@ -59,7 +62,6 @@ jobs:
command: nextest
args: run --test-threads=1


lints:
name: Lints & Format
runs-on: ubuntu-latest
Expand Down Expand Up @@ -104,4 +106,4 @@ jobs:
- name: Run bats test harnesss
run: |
docker build -t bombadil-tests ./
docker run bombadil-tests
docker run bombadil-tests
3 changes: 2 additions & 1 deletion src/dots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ mod tests {
vars: Dot::default_vars(),
};

run_cmd!(ls - larth)?;
run_cmd! {ls -larth}?;

dot.traverse_and_copy(
&source,
Expand Down Expand Up @@ -580,6 +580,7 @@ mod tests {
mkdir dir;
echo "Hello {{name}}" > dir/template;
echo "name=\"Tom\"" > dir/my_vars.toml;
ls -larth;
)?;

let dot = Dot {
Expand Down
2 changes: 1 addition & 1 deletion src/gpg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ mod test {
run_cmd!(
gpg --batch --yes --import $crate_dir/tests/gpg/public.gpg;
gpg --batch --yes --import $crate_dir/tests/gpg/private.gpg;
gpg --batch --yes --import-ownertrust < $crate_dir/tests/gpg/trust.txt
gpg --batch --yes --import-ownertrust < $crate_dir/tests/gpg/trust.txt;
)
.unwrap();
}
Expand Down

0 comments on commit 170a9c7

Please sign in to comment.