Hopefully fix the CI

i18n
Michal S 2 years ago committed by Michal
parent d0cc766149
commit 27ebe2b672

@ -1,10 +1,10 @@
name: Run checks and tests name: Lint Code
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: [ main, development, feature/gh-actions ] branches: [ main ]
pull_request: pull_request:
branches: [ main, development ] branches: [ main ]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -12,29 +12,18 @@ env:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ghcr.io/crystal-linux/crystal:latest
steps: steps:
- uses: actions/checkout@v2 - name: Prepare
if: ${{ !env.ACT }} run : |
pacman -Syu --needed --noconfirm
pacman -S --noconfirm rust
- name: Cache build data - name: Clippy
if: ${{ !env.ACT }} run: |
uses: actions/cache@v2 cargo clippy -- -D warnings
with:
path: |
target
~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Fetch - name: Format
run: cargo fetch run: |
cargo fmt --check
- name: Check
run: cargo check --all-features
- name: Lint
run: cargo clippy -- -D warnings
- name: Test
run : cargo test --all-features
Loading…
Cancel
Save