-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
58 lines (54 loc) · 2.08 KB
/
time_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Time CI
on:
push:
paths-ignore:
- '**.md'
- '**.yml'
- '!**/time_ci.yml'
pull_request:
paths-ignore:
- '**.md'
- '**.yml'
- '!**/time_ci.yml'
concurrency:
group: time-ci-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test-nix:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
strategy:
matrix:
os: [ubuntu-20.04, macos-12]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build V
run: make -j4
- name: Test time functions in a timezone UTC-12
run: TZ=Etc/GMT+12 ./v test vlib/time/
- name: Test time functions in a timezone UTC-3
run: TZ=Etc/GMT+3 ./v test vlib/time/
- name: Test time functions in a timezone UTC+3
run: TZ=Etc/GMT-3 ./v test vlib/time/
- name: Test time functions in a timezone UTC+12
run: TZ=Etc/GMT-12 ./v test vlib/time/
- name: Test time functions in a timezone using daylight saving (Europe/Paris)
run: TZ=Europe/Paris ./v test vlib/time/
test-windows:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Build V
run: .\make.bat
- name: Test time functions in a timezone UTC-12
run: tzutil /s "Dateline Standard Time" && ./v test vlib/time/
- name: Test time functions in a timezone UTC-3
run: tzutil /s "Greenland Standard Time" && ./v test vlib/time/
- name: Test time functions in a timezone UTC+3
run: tzutil /s "Russian Standard Time" && ./v test vlib/time/
- name: Test time functions in a timezone UTC+12
run: tzutil /s "New Zealand Standard Time" && ./v test vlib/time/
- name: Test time functions in a timezone using daylight saving (Europe/Paris)
run: tzutil /s "W. Europe Standard Time" && ./v test vlib/time/