zoxide/.github/workflows/cargo-test.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

2020-10-01 18:50:32 +00:00
name: cargo-test
on:
push:
pull_request:
jobs:
2020-10-26 19:55:02 +00:00
test-linux:
2020-10-18 09:38:13 +00:00
runs-on: ubuntu-18.04
2020-10-01 18:50:32 +00:00
steps:
2020-10-01 20:44:48 +00:00
- run: sudo apt update
2020-10-18 09:38:13 +00:00
- run: sudo apt install wget apt-transport-https
- run: wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
- run: sudo dpkg -i packages-microsoft-prod.deb
- run: sudo apt update
- run: sudo add-apt-repository universe
2020-11-10 19:11:26 +00:00
- run: sudo apt install bash dash fish powershell python3 python3-pip shellcheck xonsh zsh
- run: sudo snap install shfmt
2020-11-10 19:11:26 +00:00
- run: sudo pip3 install --upgrade pip setuptools
- run: sudo pip3 install --upgrade black mypy pylint
2020-10-01 18:50:32 +00:00
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
2020-10-26 19:55:02 +00:00
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast