Skip to content

Fix link to newline-delimited JSON #64

Fix link to newline-delimited JSON

Fix link to newline-delimited JSON #64

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: CI
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: DavidAnson/markdownlint-cli2-action@v10
with:
command: config
globs: |
.markdownlint.yaml
'**/*.md'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
working-directory: code
- name: Lint (rustfmt)
run: cd code && cargo xfmt --check
- name: Lint (clippy)
run: cd code && cargo clippy --all-features --all-targets
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
rust-version: [ stable ]
fail-fast: false
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
override: true
- uses: Swatinem/rust-cache@c5ed9ba6b7e1bb8aff90d43acd2f0af4990fa57c
with:
working-directory: code
- name: build
run: cd code && cargo build
- name: Test
run: cd code && cargo test