2021-09-24 20:13:52 +02:00
|
|
|
name: toml CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
toml-module-pass-external-test-suites:
|
|
|
|
runs-on: ubuntu-20.04
|
2021-11-06 14:35:31 +01:00
|
|
|
timeout-minutes: 10
|
|
|
|
env:
|
|
|
|
TOML_TESTS_PATH: vlib/toml/tests/testdata/burntsushi/toml-test
|
2021-11-15 14:36:14 +01:00
|
|
|
TOML_TESTS_PINNED_COMMIT: 576db85
|
2021-09-24 20:13:52 +02:00
|
|
|
steps:
|
|
|
|
|
2021-11-06 14:35:31 +01:00
|
|
|
- uses: actions/checkout@v2
|
2021-11-17 07:30:40 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install --quiet -y jq
|
2021-11-06 14:35:31 +01:00
|
|
|
- name: Build V
|
|
|
|
run: make -j2 && ./v -cc gcc -o v cmd/v
|
2021-09-24 20:13:52 +02:00
|
|
|
|
2021-11-06 14:35:31 +01:00
|
|
|
- name: Clone BurntSushi/toml-test
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/BurntSushi/toml-test.git $TOML_TESTS_PATH
|
|
|
|
## TODO: update/remove this pinning once all our skip lists are empty:
|
|
|
|
git -C $TOML_TESTS_PATH checkout $TOML_TESTS_PINNED_COMMIT
|
2021-09-24 20:13:52 +02:00
|
|
|
|
2021-11-06 14:35:31 +01:00
|
|
|
- name: Run tests
|
|
|
|
run: ./v -stats test vlib/toml
|