mirror of
https://github.com/mre/mos6502.git
synced 2024-11-25 02:33:26 +00:00
f3d3bf470f
* add the decimal mode feature to `Cargo.toml` * add tests for disabled decimal mode to github workflows * don't run decimal mode tests if decimal mode disabled Co-authored-by: Sam M W <you@example.com>
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: test
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install cargo
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: Run cargo fmt
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
- name: Run cargo clippy (deny warnings)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
# --all-targets makes it lint tests too
|
|
args: --all-targets -- --deny warnings
|
|
- name: Run test
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
- name: Run tests with disabled decimal mode
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --no-default-features
|