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:
|
2021-12-01 13:43:15 +01:00
|
|
|
runs-on: ubuntu-18.04
|
2021-11-06 14:35:31 +01:00
|
|
|
timeout-minutes: 10
|
|
|
|
env:
|
2021-11-26 18:15:01 +01:00
|
|
|
TOML_BS_TESTS_PATH: vlib/toml/tests/testdata/burntsushi/toml-test
|
2021-11-29 21:15:22 +01:00
|
|
|
TOML_BS_TESTS_PINNED_COMMIT: eb989e5
|
2021-11-26 18:15:01 +01:00
|
|
|
TOML_IARNA_TESTS_PATH: vlib/toml/tests/testdata/iarna/toml-test
|
|
|
|
TOML_IARNA_TESTS_PINNED_COMMIT: 1880b1a
|
2022-01-03 09:52:34 +01:00
|
|
|
TOML_AC_TESTS_PATH: vlib/toml/tests/testdata/alexcrichton/toml-test
|
|
|
|
TOML_AC_TESTS_PINNED_COMMIT: 499e8c4
|
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
|
|
|
|
2022-01-03 09:52:34 +01:00
|
|
|
- name: Show JQ Version
|
|
|
|
run: jq --version
|
|
|
|
|
2021-11-23 15:58:12 +01:00
|
|
|
- name: Run local TOML tests
|
|
|
|
run: ./v test vlib/toml
|
|
|
|
|
2021-11-30 14:08:30 +01:00
|
|
|
# Tests found at https://github.com/BurntSushi/toml-test
|
2021-11-06 14:35:31 +01:00
|
|
|
- name: Clone BurntSushi/toml-test
|
|
|
|
run: |
|
2021-11-26 18:15:01 +01:00
|
|
|
git clone https://github.com/BurntSushi/toml-test.git $TOML_BS_TESTS_PATH
|
2021-11-06 14:35:31 +01:00
|
|
|
## TODO: update/remove this pinning once all our skip lists are empty:
|
2021-11-26 18:15:01 +01:00
|
|
|
git -C $TOML_BS_TESTS_PATH checkout $TOML_BS_TESTS_PINNED_COMMIT
|
2021-09-24 20:13:52 +02:00
|
|
|
|
2021-11-23 15:58:12 +01:00
|
|
|
- name: Run BurntSushi TOML tests
|
|
|
|
run: ./v vlib/toml/tests/burntsushi.toml-test_test.v
|
2021-11-26 16:11:14 +01:00
|
|
|
|
2021-11-30 14:08:30 +01:00
|
|
|
# Tests found at gist
|
2021-11-26 16:11:14 +01:00
|
|
|
- name: Get large_toml_file_test.toml
|
|
|
|
run: wget https://gist.githubusercontent.com/Larpon/89b0e3d94c6903851ff15559e5df7a05/raw/62a1f87a4e37bf157f2e0bfb32d85d840c98e422/large_toml_file_test.toml -O vlib/toml/tests/testdata/large_toml_file_test.toml
|
|
|
|
|
|
|
|
- name: Run large TOML file tests
|
|
|
|
run: ./v vlib/toml/tests/large_toml_file_test.v
|
2021-11-26 18:15:01 +01:00
|
|
|
|
2021-11-30 14:08:30 +01:00
|
|
|
# Tests found at https://github.com/iarna/toml-spec-tests
|
2021-11-26 18:15:01 +01:00
|
|
|
- name: Clone iarna/toml-spec-tests
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/iarna/toml-spec-tests.git $TOML_IARNA_TESTS_PATH
|
|
|
|
## TODO: update/remove this pinning once all our skip lists are empty:
|
|
|
|
git -C $TOML_IARNA_TESTS_PATH checkout $TOML_IARNA_TESTS_PINNED_COMMIT
|
|
|
|
|
|
|
|
- name: Run iarna TOML tests
|
|
|
|
run: ./v vlib/toml/tests/iarna.toml-spec-tests_test.v
|
2021-11-30 14:08:30 +01:00
|
|
|
|
|
|
|
# Tests found at https://github.com/alexcrichton/toml-rs
|
|
|
|
- name: Clone alexcrichton/toml-rs
|
|
|
|
run: |
|
2022-01-03 09:52:34 +01:00
|
|
|
git clone https://github.com/alexcrichton/toml-rs.git $TOML_AC_TESTS_PATH
|
2021-11-30 14:08:30 +01:00
|
|
|
## TODO: update/remove this pinning once all our skip lists are empty:
|
2022-01-03 09:52:34 +01:00
|
|
|
git -C $TOML_ALEXCRICHTON_TESTS_PATH checkout $TOML_AC_TESTS_PINNED_COMMIT
|
2021-11-30 14:08:30 +01:00
|
|
|
|
|
|
|
- name: Run alexcrichton TOML tests
|
|
|
|
run: ./v vlib/toml/tests/alexcrichton.toml-rs-tests_test.v
|