From 78d68fcb27b2fb5b21872bd67cc5a26fd16d9270 Mon Sep 17 00:00:00 2001 From: noahdietz Date: Wed, 16 Aug 2023 15:28:36 -0700 Subject: [PATCH 1/2] chore(ci): add Action-based tests --- .github/CODEOWNERS | 6 ++++++ .github/workflows/tests.yaml | 18 ++++++++++++++++++ .travis.yml | 9 --------- README.md | 2 +- 4 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/tests.yaml delete mode 100644 .travis.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..91a5fa3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,6 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. + +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax +* @google/go-uuid-contributors diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..51531a4 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,18 @@ +--- +name: tests +on: + pull_request: + branches: + - master +jobs: + unit-tests: + strategy: + matrix: + go-version: [1.19, 1.20, 1.21] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - run: go test -v ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d8156a6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -go: - - 1.4.3 - - 1.5.3 - - tip - -script: - - go test -v ./... diff --git a/README.md b/README.md index f765a46..c8bcfc9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# uuid ![build status](https://travis-ci.org/google/uuid.svg?branch=master) +# uuid The uuid package generates and inspects UUIDs based on [RFC 4122](http://tools.ietf.org/html/rfc4122) and DCE 1.1: Authentication and Security Services. From db89a3cfe24b97b7ecb5ab72a21dee16692c298c Mon Sep 17 00:00:00 2001 From: noahdietz Date: Wed, 16 Aug 2023 15:34:50 -0700 Subject: [PATCH 2/2] fix go1.20 resolving to go1.2 --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 51531a4..39d1811 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,7 +8,7 @@ jobs: unit-tests: strategy: matrix: - go-version: [1.19, 1.20, 1.21] + go-version: [1.19, 1.20.x, 1.21] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3