v2 / .github / workflows / time_ci.yml
71 lines · 66 sloc · 2.42 KB · d444f9c25dea51ee70d1a8ec896b34484370e791
Raw
1name: Time CI
2
3on:
4 push:
5 paths:
6 - 'vlib/**'
7 - 'cmd/tools/builders/**.v'
8 - '**/time_ci.yml'
9 - '!**.md'
10 pull_request:
11 paths:
12 - 'vlib/**'
13 - 'cmd/tools/builders/**.v'
14 - '**/time_ci.yml'
15 - '!**.md'
16
17concurrency:
18 group: time-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
19 cancel-in-progress: true
20
21jobs:
22 time-linux:
23 runs-on: ubuntu-latest
24 steps:
25 - uses: actions/checkout@v6
26 - name: Build V
27 run: make
28 - name: Test time functions in a timezone UTC-12
29 run: TZ=Etc/GMT+12 ./v test vlib/time/
30 - name: Test time functions in a timezone UTC-3
31 run: TZ=Etc/GMT+3 ./v test vlib/time/
32 - name: Test time functions in a timezone UTC+3
33 run: TZ=Etc/GMT-3 ./v test vlib/time/
34 - name: Test time functions in a timezone UTC+12
35 run: TZ=Etc/GMT-12 ./v test vlib/time/
36 - name: Test in a timezone using daylight saving (Europe/Paris)
37 run: TZ=Europe/Paris ./v test vlib/time/
38
39 time-macos:
40 runs-on: macos-14
41 steps:
42 - uses: actions/checkout@v6
43 - name: Build V
44 run: make
45 - name: Test time functions in a timezone UTC-12
46 run: TZ=Etc/GMT+12 ./v test vlib/time/
47 - name: Test time functions in a timezone UTC-3
48 run: TZ=Etc/GMT+3 ./v test vlib/time/
49 - name: Test time functions in a timezone UTC+3
50 run: TZ=Etc/GMT-3 ./v test vlib/time/
51 - name: Test time functions in a timezone UTC+12
52 run: TZ=Etc/GMT-12 ./v test vlib/time/
53 - name: Test in a timezone using daylight saving (Europe/Paris)
54 run: TZ=Europe/Paris ./v test vlib/time/
55
56 time-windows:
57 runs-on: windows-2025
58 steps:
59 - uses: actions/checkout@v6
60 - name: Build V
61 run: .\makev.bat
62 - name: Test time functions in a timezone UTC-12
63 run: tzutil /s "Dateline Standard Time" && ./v test vlib/time/
64 - name: Test time functions in a timezone UTC-3
65 run: tzutil /s "Greenland Standard Time" && ./v test vlib/time/
66 - name: Test time functions in a timezone UTC+3
67 run: tzutil /s "Russian Standard Time" && ./v test vlib/time/
68 - name: Test time functions in a timezone UTC+12
69 run: tzutil /s "New Zealand Standard Time" && ./v test vlib/time/
70 - name: Test in a timezone using daylight saving (Europe/Paris)
71 run: tzutil /s "W. Europe Standard Time" && ./v test vlib/time/
72