add forgejo CI
Some checks failed
per-push tests / build (push) Failing after 1m49s
per-push tests / test-frontend (push) Has been skipped
per-push tests / timed-decomposer-parse (push) Has been skipped
per-push tests / test-utility (push) Has been skipped
per-push tests / test-backend (push) Has been skipped
Some checks failed
per-push tests / build (push) Failing after 1m49s
per-push tests / test-frontend (push) Has been skipped
per-push tests / timed-decomposer-parse (push) Has been skipped
per-push tests / test-utility (push) Has been skipped
per-push tests / test-backend (push) Has been skipped
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
0476160ae3
commit
a2f28547f9
1 changed files with 80 additions and 0 deletions
80
.forgejo/workflows/test.yml
Normal file
80
.forgejo/workflows/test.yml
Normal file
|
|
@ -0,0 +1,80 @@
|
||||||
|
name: "per-push tests"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronized
|
||||||
|
- reopened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: compile components
|
||||||
|
run: |
|
||||||
|
cargo build --lib
|
||||||
|
cargo build --bin decomposer
|
||||||
|
|
||||||
|
test-frontend:
|
||||||
|
needs: [build]
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: test lexer
|
||||||
|
run: cargo test lexer
|
||||||
|
- name: test parser
|
||||||
|
run: cargo test parser
|
||||||
|
|
||||||
|
timed-decomposer-parse:
|
||||||
|
needs: [test-frontend]
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: build decomposer
|
||||||
|
run: cargo build --bin decomposer
|
||||||
|
- name: download test scheme source
|
||||||
|
run: curl https://raw.githubusercontent.com/ecraven/r7rs-benchmarks/refs/heads/master/src/compiler.scm --output test.scm
|
||||||
|
- name: time parsing of test source
|
||||||
|
run: cargo run --bin decomposer -- -t test.scm
|
||||||
|
|
||||||
|
test-utility:
|
||||||
|
needs: [build]
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: test number package
|
||||||
|
run: cargo test number
|
||||||
|
- name: test double stack data type
|
||||||
|
run: cargo test stackstack
|
||||||
|
- name: test hashmap data type
|
||||||
|
run: cargo test hmap
|
||||||
|
|
||||||
|
test-backend:
|
||||||
|
needs: [build]
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: test instruction decoding
|
||||||
|
run: cargo test util # this is instruction decoding code
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue