mirror of
https://github.com/danog/parser.git
synced 2024-12-03 09:57:45 +01:00
ac42958b4f
- added `prelude` - moved `ast` to `parser` - moved `Lexer` from `crate::lexer::lexer::Lexer` to `crate::lexer::Lexer` - renamed `LexerError` to `SyntaxError` - moved `SyntaxError` to `token::error` - implemented `Display` for `SyntaxError` - add `tokens.txt` to integration tests - removed all unit tests for `Lexer` ( everything is tested in integration tests ) - improved syntax error assertations
43 lines
791 B
YAML
43 lines
791 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
tests:
|
|
name: tests
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
rust:
|
|
- 'stable'
|
|
- 'nightly'
|
|
os:
|
|
- 'ubuntu-latest'
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: install rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
- name: cache
|
|
uses: Swatinem/rust-cache@v2.0.0
|
|
|
|
- name: check
|
|
if: matrix.rust == 'stable'
|
|
run: |
|
|
cargo fmt --all -- --check
|
|
cargo clippy
|
|
|
|
- name: test
|
|
run: ./meta/test --all -- --skip third_party
|