v / .github / workflows / toml_ci.yml
42 lines · 36 sloc · 1.05 KB · 93162641ddda0809e8e8c2da69af8b13982567ee
Raw
1name: toml CI
2
3on:
4 push:
5 branches:
6 - master
7 paths:
8 - 'vlib/**'
9 - '**/toml_ci.yml'
10 - '!**.md'
11 pull_request:
12 paths:
13 - 'vlib/**'
14 - '**/toml_ci.yml'
15 - '!**.md'
16
17concurrency:
18 group: toml-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
19 cancel-in-progress: true
20
21jobs:
22 toml-module-pass-external-test-suites:
23 runs-on: ubuntu-latest
24 timeout-minutes: 20
25 steps:
26 - uses: actions/checkout@v6
27 - name: Build V
28 run: make -j4 && ./v symlink
29 - name: Install dependencies
30 run: |
31 v retry -- v download https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64
32 sudo chmod 755 jq-linux64
33 sudo mv jq-linux64 /usr/bin/jq
34
35 - name: Show JQ Version
36 run: jq --version
37
38 - name: Download more TOML testsuits
39 run: .github/workflows/download_full_toml_test_suites.sh
40
41 - name: Run TOML tests
42 run: VTEST_TOML_DO_YAML_CONVERSION=1 VTEST_TOML_DO_LARGE_FILES=1 ./v test vlib/toml
43