test: run unit tests on sr.ht
This commit is contained in:
parent
0697911b7c
commit
09b4668a53
2 changed files with 12 additions and 28 deletions
12
.builds/unit-tests.yml
Normal file
12
.builds/unit-tests.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
image: archlinux
|
||||
sources:
|
||||
- https://github.com/mahkoh/jay
|
||||
tasks:
|
||||
- install: |
|
||||
sudo pacman -Syu --noconfirm
|
||||
sudo pacman -S --noconfirm rustup libinput pango mesa libxkbcommon xorg-xwayland adwaita-icon-theme libxcursor
|
||||
rustup toolchain install stable
|
||||
- test: |
|
||||
cd jay
|
||||
export RUSTC_BOOTSTRAP=1
|
||||
cargo test
|
||||
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
|
@ -1,28 +0,0 @@
|
|||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Show env
|
||||
run: |
|
||||
uname -a
|
||||
ldd --version
|
||||
- name: Install
|
||||
run: |
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||
rustup toolchain install nightly --allow-downgrade -c rustfmt
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
- name: Test
|
||||
run: cargo +nightly test
|
||||
Loading…
Add table
Add a link
Reference in a new issue