Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions test setup go custom #4

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
502e2d5
Add trigger workflows script
nikolai-laevskii May 4, 2023
c99f29a
trigger_workflows
nikolai-laevskii May 4, 2023
d8b56d2
Put checkout first to enable caching
nikolai-laevskii May 4, 2023
9802d7a
Add caching via actions/cache
nikolai-laevskii May 4, 2023
211095c
Update dpenedency file paths
nikolai-laevskii May 4, 2023
73be0ea
Disable setup-go cache
nikolai-laevskii May 4, 2023
9b2f54a
Use setup-go cache
nikolai-laevskii May 4, 2023
899dd89
trigger_workflows
nikolai-laevskii May 4, 2023
c4769ae
trigger_workflows
nikolai-laevskii May 4, 2023
85996f0
trigger_workflows
nikolai-laevskii May 4, 2023
82d7996
trigger_workflows
nikolai-laevskii May 4, 2023
b584631
trigger_workflows
nikolai-laevskii May 4, 2023
fedf5be
trigger_workflows
nikolai-laevskii May 4, 2023
59e4d5b
trigger_workflows
nikolai-laevskii May 4, 2023
17482ec
trigger_workflows
nikolai-laevskii May 5, 2023
df509b1
trigger_workflows
nikolai-laevskii May 5, 2023
fd4353b
trigger_workflows
nikolai-laevskii May 5, 2023
2fe3e03
trigger_workflows
nikolai-laevskii May 5, 2023
478414d
Add setup-go as custom action
nikolai-laevskii May 5, 2023
cdc050c
Use custom setup-go action
nikolai-laevskii May 5, 2023
e09b5fb
Fix path to custom action
nikolai-laevskii May 5, 2023
cfb80d5
Fix path to action
nikolai-laevskii May 5, 2023
a4ebcca
trigger_workflows
nikolai-laevskii May 5, 2023
99759ac
trigger_workflows
nikolai-laevskii May 5, 2023
c089548
trigger_workflows
nikolai-laevskii May 5, 2023
38b7c38
trigger_workflows
nikolai-laevskii May 5, 2023
9a8c8dd
trigger_workflows
nikolai-laevskii May 5, 2023
f3e1eb2
trigger_workflows
nikolai-laevskii May 5, 2023
16e84e8
trigger_workflows
nikolai-laevskii May 5, 2023
6eb6c0d
trigger_workflows
nikolai-laevskii May 5, 2023
25df880
trigger_workflows
nikolai-laevskii May 5, 2023
54e3150
trigger_workflows
nikolai-laevskii May 5, 2023
2b0a66b
Update @actions/cache in setup-go to v3.2.1
nikolai-laevskii May 5, 2023
badcb44
trigger_workflows
nikolai-laevskii May 5, 2023
ea29d05
trigger_workflows
nikolai-laevskii May 5, 2023
0c2f8ee
trigger_workflows
nikolai-laevskii May 5, 2023
1dbd89b
trigger_workflows
nikolai-laevskii May 5, 2023
fc3bdb1
trigger_workflows
nikolai-laevskii May 5, 2023
902c0f7
trigger_workflows
nikolai-laevskii May 5, 2023
cd74347
trigger_workflows
nikolai-laevskii May 5, 2023
81a1f98
trigger_workflows
nikolai-laevskii May 5, 2023
7c760cd
trigger_workflows
nikolai-laevskii May 5, 2023
3d363e0
trigger_workflows
nikolai-laevskii May 5, 2023
954de6d
Try after clearing cache
nikolai-laevskii May 5, 2023
bc48a1a
trigger_workflows
nikolai-laevskii May 5, 2023
4cace83
trigger_workflows
nikolai-laevskii May 5, 2023
1655854
trigger_workflows
nikolai-laevskii May 5, 2023
406d408
trigger_workflows
nikolai-laevskii May 5, 2023
32c7a7e
trigger_workflows
nikolai-laevskii May 5, 2023
3f05442
trigger_workflows
nikolai-laevskii May 5, 2023
a414c83
trigger_workflows
nikolai-laevskii May 5, 2023
0b5940e
trigger_workflows
nikolai-laevskii May 5, 2023
91947ec
trigger_workflows
nikolai-laevskii May 5, 2023
396c967
trigger_workflows
nikolai-laevskii May 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/setup-go/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore list
/*

# Do not ignore these folders:
!__tests__/
!src/
50 changes: 50 additions & 0 deletions .github/actions/setup-go/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// This is a reusable configuration file copied from https://github.com/actions/reusable-workflows/tree/main/reusable-configurations. Please don't make changes to this file as it's the subject of an automatic update.
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:eslint-plugin-jest/recommended',
'eslint-config-prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-jest'],
rules: {
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description'
}
],
'no-console': 'error',
'yoda': 'error',
'prefer-const': [
'error',
{
destructuring: 'all'
}
],
'no-control-regex': 'off',
'no-constant-condition': ['error', {checkLoops: false}]
},
overrides: [
{
files: ['**/*{test,spec}.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'jest/no-standalone-expect': 'off',
'jest/no-conditional-expect': 'off',
'no-console': 'off',

}
}
],
env: {
node: true,
es6: true,
'jest/globals': true
}
};
2 changes: 2 additions & 0 deletions .github/actions/setup-go/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto eol=lf
.licenses/** -diff linguist-generated=true
38 changes: 38 additions & 0 deletions .github/actions/setup-go/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a bug report
title: ''
labels: bug, needs triage
assignees: ''

---

<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new bug report, please make sure to check for similar existing issues -->

**Description:**
A clear and concise description of what the bug is.

**Action version:**
Specify the action version

**Platform:**
- [ ] Ubuntu
- [ ] macOS
- [ ] Windows

**Runner type:**
- [ ] Hosted
- [ ] Self-hosted

**Tools version:**
<!--- Please specify go version -->

**Repro steps:**
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

**Expected behavior:**
A description of what you expected to happen.

**Actual behavior:**
A description of what is actually happening.
1 change: 1 addition & 0 deletions .github/actions/setup-go/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
18 changes: 18 additions & 0 deletions .github/actions/setup-go/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature request, needs triage
assignees: ''
---
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new feature request, please make sure to check for similar existing issues and pull requests -->

**Description:**
Describe your proposal.

**Justification:**
Justification or a use case for your proposal.

**Are you willing to submit a PR?**
<!--- We accept contributions! -->
9 changes: 9 additions & 0 deletions .github/actions/setup-go/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**Description:**
Describe your changes.

**Related issue:**
Add link to the related issue.

**Check list:**
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.
16 changes: 16 additions & 0 deletions .github/actions/setup-go/.github/workflows/basic-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Basic validation

on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'

jobs:
call-basic-validation:
name: Basic validation
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
17 changes: 17 additions & 0 deletions .github/actions/setup-go/.github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check dist/

on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
call-check-dist:
name: Check dist/
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
14 changes: 14 additions & 0 deletions .github/actions/setup-go/.github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CodeQL analysis

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 3 * * 0'

jobs:
call-codeQL-analysis:
name: CodeQL analysis
uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
14 changes: 14 additions & 0 deletions .github/actions/setup-go/.github/workflows/licensed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Licensed

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
call-licensed:
name: Licensed
uses: actions/reusable-workflows/.github/workflows/licensed.yml@main
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release new action version

on:
release:
types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true

env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
permissions:
contents: write

jobs:
update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
environment:
name: releaseNewActionVersion
runs-on: ubuntu-latest
steps:
- name: Update the ${{ env.TAG_NAME }} tag
uses: actions/[email protected]
with:
source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
11 changes: 11 additions & 0 deletions .github/actions/setup-go/.github/workflows/update-config-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Update configuration files

on:
schedule:
- cron: '0 3 * * 0'
workflow_dispatch:

jobs:
call-update-configuration-files:
name: Update configuration files
uses: actions/reusable-workflows/.github/workflows/update-config-files.yml@main
Loading