Skip to content

Commit f965b2d

Browse files
author
David Cavazos
committed
run tests on action
1 parent 4f58bcd commit f965b2d

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Cloud Samples Tools
16+
on:
17+
push:
18+
branches:
19+
- main
20+
paths:
21+
- .github/cloud-samples-tools/
22+
pull_request:
23+
paths:
24+
- .github/cloud-samples-tools/
25+
26+
env:
27+
GO_VERSION: ^1.22.0
28+
29+
jobs:
30+
test:
31+
name: Test
32+
runs-on: ubuntu-latest
33+
timeout-minutes: 5
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-go@v5
37+
with:
38+
go-version: ${{ env.GO_VERSION }}
39+
- run: go test ./test
40+
working-directory: .github/cloud-samples-tools

.github/workflows/experimental.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ on:
1818
branches:
1919
- main
2020
pull_request:
21-
types:
22-
- opened
23-
- reopened
24-
- synchronize
25-
- labeled
2621
schedule:
2722
# https://crontab.guru/#0_12_*_*_0
2823
- cron: 0 12 * * 0 # At 12:00 on Sunday

0 commit comments

Comments
 (0)