Skip to content

Commit 34e4353

Browse files
committed
ci: simplify time_ci.yml, use more descriptive CI job names, for easier judging of CI failures
1 parent 072d65b commit 34e4353

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

.github/workflows/time_ci.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
jobs:
20-
test-nix:
20+
test-time-linux:
2121
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
22-
strategy:
23-
matrix:
24-
os: [ubuntu-20.04, macos-12]
25-
fail-fast: false
26-
runs-on: ${{ matrix.os }}
22+
runs-on: ubuntu-latest
2723
steps:
2824
- uses: actions/checkout@v4
2925
- name: Build V
30-
run: make -j4
26+
run: make
3127
- name: Test time functions in a timezone UTC-12
3228
run: TZ=Etc/GMT+12 ./v test vlib/time/
3329
- name: Test time functions in a timezone UTC-3
@@ -36,10 +32,28 @@ jobs:
3632
run: TZ=Etc/GMT-3 ./v test vlib/time/
3733
- name: Test time functions in a timezone UTC+12
3834
run: TZ=Etc/GMT-12 ./v test vlib/time/
39-
- name: Test time functions in a timezone using daylight saving (Europe/Paris)
35+
- name: Test in a timezone using daylight saving (Europe/Paris)
4036
run: TZ=Europe/Paris ./v test vlib/time/
4137

42-
test-windows:
38+
test-time-macos:
39+
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
40+
runs-on: macos-latest
41+
steps:
42+
- uses: actions/checkout@v4
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+
test-time-windows:
4357
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
4458
runs-on: windows-2019
4559
steps:
@@ -54,5 +68,5 @@ jobs:
5468
run: tzutil /s "Russian Standard Time" && ./v test vlib/time/
5569
- name: Test time functions in a timezone UTC+12
5670
run: tzutil /s "New Zealand Standard Time" && ./v test vlib/time/
57-
- name: Test time functions in a timezone using daylight saving (Europe/Paris)
71+
- name: Test in a timezone using daylight saving (Europe/Paris)
5872
run: tzutil /s "W. Europe Standard Time" && ./v test vlib/time/

0 commit comments

Comments
 (0)