Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k1low/oldstable
Check if version of go directive in go.mod is oldstable.
https://github.com/k1low/oldstable
github-actions go versioning
Last synced: 2 days ago
JSON representation
Check if version of go directive in go.mod is oldstable.
- Host: GitHub
- URL: https://github.com/k1low/oldstable
- Owner: k1LoW
- License: mit
- Created: 2024-07-01T09:24:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-07-01T13:49:14.000Z (3 months ago)
- Last Synced: 2024-07-10T14:33:20.202Z (3 months ago)
- Topics: github-actions, go, versioning
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# oldstable
Check if version of go directive in go.mod is oldstable.
## As a CLI
### Usage
``` console
$ oldstable
Error: version of go directive in go.mod is not latest oldstable (oldstable: 1.21.11, current: 1.22.4)
```## As a GitHub Action
### Usage
``` yaml
# .github/workflows/oldstable.yml
[...]
steps:
-
name: Check if version of go directive in go.mod is oldstable
uses: k1LoW/oldstable@v1
# with:
# go-mod-file: go.mod
# lax: false
```## Checking rule
| oldstable | go directive | lax mode (`--lax`) | check |
| --- | --- | --- | --- |
| `1.21.11` | `1.21.11` | `false` | **ok** |
| `1.21.11` | `1.21.6` | `false` | **ng** |
| `1.21.11` | `1.22.4` | `false` | **ng** |
| `1.21.11` | `1.21` | `false` | **ng** |
| `1.21.11` | `1.21.6` | `true` | **ok** |
| `1.21.11` | `1.22.4` | `true` | **ng** |
| `1.21.11` | `1.21` | `true` | **ok** |