Skip to content

Commit

Permalink
Merge pull request #221 from VictorAvelar/housekeeping/02-2023
Browse files Browse the repository at this point in the history
Housekeeping: 02.2023
  • Loading branch information
VictorAvelar committed Feb 8, 2023
2 parents d93ecb3 + 71847e6 commit 867cf63
Show file tree
Hide file tree
Showing 37 changed files with 1,232 additions and 194 deletions.
15 changes: 4 additions & 11 deletions .devcontainer/devcontainer.json
Expand Up @@ -6,6 +6,9 @@
"GO_VERSION": "1-bullseye"
}
},
"mounts": [
"source=${localEnv:HOME}/.zshrc,target=/root/.zshrc,type=bind,consistency=cached"
],
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
Expand Down Expand Up @@ -52,16 +55,10 @@
"ui.semanticTokens": true
},
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
],
"go.lintOnSave": "package",
"go.toolsEnvVars": {
"CGO_ENABLED": 1
},
"go.testEnvVars": {
"": ""
},
"go.testFlags": [
"-v",
"-race"
Expand All @@ -88,9 +85,5 @@
"modules": "go mod download"
},
"remoteUser": "root",
"containerUser": "root",
"containerEnv": {
"MOLLIE_API_TOKEN": "${localEnv:MOLLIE_API_TOKEN}",
"MOLLIE_ORG_TOKEN": "${localEnv:MOLLIE_ORG_TOKEN}"
}
"containerUser": "root"
}
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -2,8 +2,8 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
labels: ['bug', 'help-wanted']
assignees: 'VictorAvelar'

---

Expand Down
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Expand Up @@ -3,3 +3,9 @@ contact_links:
- name: Victor H. Avelar
url: https://victoravelar.com
about: Maintainer
- name: Mollie's API Documentation
url: https://docs.mollie.com/index
about: Official API Documentation
- name: Mollie's Changelog
url: https://docs.mollie.com/changelog/v2/changelog
about: Changes announced in the API
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
labels: ['enhancement']
assignees: ''

---
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Expand Up @@ -6,15 +6,21 @@ updates:
interval: weekly
time: "04:00"
open-pull-requests-limit: 10
reviewers:
- VictorAvelar

- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
target-branch: master
reviewers:
- VictorAvelar

- package-ecosystem: docker
directory: '/'
schedule:
interval: weekly
target-branch: master
reviewers:
- VictorAvelar
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -63,7 +63,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/golangci-lint.yml
Expand Up @@ -32,13 +32,15 @@ jobs:
golangci:
name: Linter
runs-on: ubuntu-latest
permissions:
content: read
pull-requests: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@39d8d7e78f59cf6b40ac3b9fbebef0c753d7c9e5
name: golangci-lint
- uses: actions/setup-go@v3
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: 1.19.X
- uses: golangci/golangci-lint-action@v3.4.0
go-version: 1.20.X
- uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
with:
version: latest
args: --issues-exit-code=0 --new=true --sort-results --skip-dirs-use-default --tests=false
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
sync-labels: true
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -29,13 +29,15 @@ on:
jobs:
testing:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
go: [1.17.x, 1.18.x, 1.19.X]
go: [1.17.x, 1.18.x, 1.19.X, 1.20.x]
name: Go ${{ matrix.go }} check
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: ${{ matrix.go }}
- run: go test -v -failfast ./...
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Expand Up @@ -9,16 +9,13 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: 1.19.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
go-version: 1.20.x
- uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b
with:
version: latest
args: release --rm-dist
Expand Down
32 changes: 32 additions & 0 deletions .golangci.yaml
@@ -0,0 +1,32 @@
# golangci-lint configuration

run:
concurrency: 4
timeout: 20s
issues-exit-code: 2
tests: false
skip-dirs-use-default: true
modules-download-mode: readonly
go: '1.17'

output:
format: tab
sort-results: true

linters:
disable:
- tagliatelle
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
- sql
- style

fast: true
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -16,6 +16,7 @@

[![Go Reference](https://pkg.go.dev/badge/github.com/VictorAvelar/mollie-api-go/v3/mollie.svg)](https://pkg.go.dev/github.com/VictorAvelar/mollie-api-go/v3/mollie)
[![Go Report Card](https://goreportcard.com/badge/github.com/VictorAvelar/mollie-api-go/v3)](https://goreportcard.com/report/github.com/VictorAvelar/mollie-api-go/v3)
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/3522/badge)](https://bestpractices.coreinfrastructure.org/projects/3522)

Accepting [iDEAL](https://www.mollie.com/payments/ideal/), [Apple Pay](https://www.mollie.com/payments/apple-pay), [Bancontact](https://www.mollie.com/payments/bancontact/), [SOFORT Banking](https://www.mollie.com/payments/sofort/), [Creditcard](https://www.mollie.com/payments/credit-card/), [SEPA Bank transfer](https://www.mollie.com/payments/bank-transfer/), [SEPA Direct debit](https://www.mollie.com/payments/direct-debit/), [PayPal](https://www.mollie.com/payments/paypal/), [Belfius Direct Net](https://www.mollie.com/payments/belfius/), [KBC/CBC](https://www.mollie.com/payments/kbc-cbc/), [paysafecard](https://www.mollie.com/payments/paysafecard/), [Giftcards](https://www.mollie.com/payments/gift-cards/), [Giropay](https://www.mollie.com/payments/giropay/), [EPS](https://www.mollie.com/payments/eps/) and [Przelewy24](https://www.mollie.com/payments/przelewy24/) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.

Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Expand Up @@ -14,6 +14,7 @@ declared inside the `.github/workflows/main.yml` file.
| 1.17.x | :white_check_mark: |
| 1.18.x | :white_check_mark: |
| 1.19.x | :white_check_mark: |
| 1.20.x | :white_check_mark: |
| master | :x: |

## Reporting a Vulnerability
Expand Down

0 comments on commit 867cf63

Please sign in to comment.