parser/.github/workflows/tests.yml
Saif Eddin Gmati ac42958b4f chore: refactor project structure
- 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
2022-12-04 08:56:53 +00:00

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