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