Skip to content

Commit 5d63f34

Browse files
committed
Recover missing files
git ignore Documentation & CI Added missing files
1 parent 02f8e28 commit 5d63f34

26 files changed

+4124
-179
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2.1
2+
3+
executors:
4+
go:
5+
docker:
6+
- image: golang:1.15.7
7+
auth:
8+
username: $DOCKER_LOGIN
9+
password: $DOCKER_PASSWORD
10+
11+
golangci-lint:
12+
docker:
13+
- image: golangci/golangci-lint:latest-alpine
14+
auth:
15+
username: $DOCKER_LOGIN
16+
password: $DOCKER_PASSWORD
17+
18+
jobs:
19+
# Run go formatting, linting and static analysis checks
20+
lint-go:
21+
executor:
22+
name: golangci-lint
23+
parameters:
24+
working_directory:
25+
description: "Which directory to run tests in"
26+
type: string
27+
steps:
28+
- checkout
29+
- run:
30+
name: Run go formatting, linting and static analysis checks
31+
working_directory: <<parameters.working_directory>>
32+
command: |
33+
golangci-lint run -v
34+
35+
testing:
36+
executor:
37+
name: go
38+
parameters:
39+
directory:
40+
description: "Where to run the tests"
41+
type: string
42+
steps:
43+
- checkout
44+
- run:
45+
working_directory: <<parameters.directory>>
46+
command: go test -cover ./...
47+
48+
workflows:
49+
deploy:
50+
jobs:
51+
- lint-go:
52+
name: lint-utils
53+
working_directory: utils
54+
filters:
55+
branches:
56+
ignore:
57+
- master
58+
59+
- testing:
60+
name: test-utils
61+
directory: utils

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default owners for everything in the repo.
2+
* @ARM-software/golang-utils-admin

.github/ISSUE_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3+
SPDX-License-Identifier: Apache-2.0
4+
-->
5+
### Description
6+
7+
<!--
8+
A detailed description of what is being reported. Please include steps to reproduce the problem.
9+
10+
Things to consider sharing:
11+
- What version of the package is being used ?
12+
- What is the host platform and version (e.g. macOS 10.15.2, Windows 10, Ubuntu 18.04 LTS) ?
13+
-->
14+
15+
16+
17+
### Issue request type
18+
19+
<!--
20+
Please add only one `x` to one of the following types. Do not fill multiple types (split the issue otherwise).
21+
22+
-->
23+
24+
- [ ] Enhancement
25+
- [ ] Bug
26+
- [ ] Question

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!--
2+
Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
3+
SPDX-License-Identifier: Apache-2.0
4+
-->
5+
### Description
6+
7+
<!--
8+
Please add any detail or context that would be useful to a reviewer.
9+
-->
10+
11+
12+
13+
### Test Coverage
14+
15+
<!--
16+
Please put an `x` in the correct box e.g. `[x]` to indicate the testing coverage of this change.
17+
-->
18+
19+
- [ ] This change is covered by existing or additional automated tests.
20+
- [ ] Manual testing has been performed (and evidence provided) as automated testing was not feasible.
21+
- [ ] Additional tests are not required for this change (e.g. documentation update).

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: "/utils"
5+
schedule:
6+
interval: daily
7+
timezone: Europe/London
8+
open-pull-requests-limit: 10
9+
rebase-strategy: disabled

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags-ignore:
7+
- '**'
8+
pull_request:
9+
branches: [ master ]
10+
11+
# Set environment variables available in all jobs and steps
12+
env:
13+
go_version: "1.16"
14+
python_version: "3.9"
15+
16+
jobs:
17+
# Check that a news file has been added to this branch when a PR is created
18+
assert-news:
19+
name: Assert news files (See CONTRIBUTING.md)
20+
runs-on: ubuntu-latest
21+
steps:
22+
# Checkout with full history for to allow compare with base branch
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
- uses: actions/setup-python@v2
27+
- name: Install CI/CD tools
28+
run: pip install continuous-delivery-scripts
29+
- name: Assert news
30+
run: cd-assert-news
31+
env:
32+
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
- name: Report failure if needed
34+
if: ${{ failure() }}
35+
run: |
36+
echo "::error:: News file missing (See CONTRIBUTING.md guide for details)."
37+
38+
build-and-test:
39+
strategy:
40+
matrix:
41+
os: [ubuntu-latest, macOS-latest, windows-latest]
42+
go-module: [utils]
43+
multi-platform:
44+
- ${{ github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch' }}
45+
exclude:
46+
- os: macOS-latest
47+
multi-platform: false
48+
- os: windows-latest
49+
multi-platform: false
50+
name: Build and test
51+
runs-on: ${{ matrix.os }}
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: Set up Go
55+
uses: actions/setup-go@v2
56+
with:
57+
go-version: ${{ env.go_version }}
58+
59+
- if: ${{ startsWith(matrix.os, 'macOS') }}
60+
run: echo "CACHE_PATH=${{ env.go_cache_macOS_path }}" >> $GITHUB_ENV
61+
- if: ${{ startsWith(matrix.os, 'windows') }}
62+
run: echo "CACHE_PATH=${{ env.go_cache_windows_path }}" >> $GITHUB_ENV
63+
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
64+
run: echo "CACHE_PATH=${{ env.go_cache_ubuntu_path }}" >> $GITHUB_ENV
65+
- name: golangci-lint
66+
uses: golangci/golangci-lint-action@v2
67+
with:
68+
# Required: the version of golangci-lint is required and must be specified without patch version.
69+
version: v2.5
70+
working-directory: utils
71+
args: -v
72+
- name: Build ${{ matrix.go-module }}
73+
run: go build -v ./...
74+
working-directory: ${{ matrix.go-module }}
75+
- name: Test ${{ matrix.go-module }}
76+
run: go test -cover -v ./...
77+
working-directory: ${{ matrix.go-module }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
dist/

0 commit comments

Comments
 (0)