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

Add CI #1

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
name: Go CI/CD Pipeline

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

jobs:
editorconfig:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker

markdown-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: DavidAnson/markdownlint-cli2-action@v16
with:
globs: '**/*.md'

go-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './src/umom/go.mod'
- name: Run go test
run: |
cd ./src/umom
go test -v ./...

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './src/umom/go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
working-directory: ./src/umom

yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install yamllint
run: pip install yamllint

- name: Run yamllint
run: yamllint .
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Implementation:
## How to use

```sh
$ umom # recursively processes files in current directory
$ umom /path/to/music # recursively processes files in specified directory
$ umom /path/to/music_file.mp3 # processes single file
umom # recursively processes files in current directory
umom /path/to/music # recursively processes files in specified directory
umom /path/to/music_file.mp3 # processes single file
```

## Installation
Expand All @@ -44,7 +44,7 @@ If you have Golang installed version like in `./src/go.mod` and there is
`~/.local/bin` folder in your `$PATH`, you can install `umom` by running:

```sh
$ make build-and-install
make build-and-install
```

I will write CI/CD release pipeline sometimes. Maybe.
Expand Down
Loading