Skip to content

Commit

Permalink
Merge pull request #40 from helios-ag/Updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
helios-ag authored Aug 10, 2024
2 parents c5ef0b5 + a1fbb3a commit 1cb4b4e
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 125 deletions.
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers-contrib/features/tailscale:1": {}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.go",
"github.copilot",
"eamodio.gitlens"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
30 changes: 0 additions & 30 deletions .github/workflows/changelog.yml

This file was deleted.

73 changes: 0 additions & 73 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

17 changes: 6 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Go

on:
push:
branches:
- main
branches: [ master ]
pull_request:
branches:
- main
branches: [ master ]

jobs:
build:
Expand All @@ -17,13 +15,13 @@ jobs:

steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
- run: go version

- name: Checkout repository
uses: actions/checfkout@v3
uses: actions/checkout@v4

- name: Examine source code
run: go vet -v ./...
Expand All @@ -33,9 +31,6 @@ jobs:

- name: Test
run: make test/codecov

- name: Finish
run: bash <(curl -s https://codecov.io/bash)

- name: Update Go report card
uses: creekorful/[email protected]

13 changes: 7 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
tags:
- v*
branches:
- main
- master
pull_request:
branches:
- main
- master
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
Expand All @@ -20,16 +20,16 @@ jobs:

steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
- run: go version

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
Expand All @@ -48,3 +48,4 @@ jobs:

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true

10 changes: 5 additions & 5 deletions .github/workflows/staticcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
go: ["1.21.x"]
go: ["1.22.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1.7.0
- uses: WillAbides/setup-go-faster@v1.14.0
with:
go-version: ${{ matrix.go }}
- run: "go test ./..."
- run: "go vet ./..."
- uses: dominikh/staticcheck-action@v1.2.0
- uses: dominikh/staticcheck-action@v1.3.1
with:
version: "2022.1"
version: "latest"
install-go: false
cache-key: ${{ matrix.go }}

0 comments on commit 1cb4b4e

Please sign in to comment.