fixing up styling + e2e test #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
name: build-linux_amd64 | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- name: test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: lint | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: e2e-test | |
run: | | |
sudo apt-get install zsh fish -y | |
echo "testing bash" | |
bash scripts/e2e-test.sh bash | |
echo "testing zsh" | |
zsh scripts/e2e-test.sh zsh | |
echo "testing fish" | |
fish scripts/e2e-test.fish fish | |
- name: build-release | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
cargo build --release | |
cp ./target/release/tome ./target/release/tome-linux_amd64 | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ./target/release/tome-linux_amd64 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
draft: true |