Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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** |