This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Linter" and "Create release" pipelines (#3)
* Add Linter pipeline * Disable MD013 for README.md * Fix Ruby lint warnings * Fix Ruby lint warnings * Fix Ruby lint warnings * Fix functional tests
- Loading branch information
Showing
22 changed files
with
149 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
BUNDLE_PATH: ".bundle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
name: Create release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create_release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.ref }} | ||
- name: Get commits since last release | ||
id: changes | ||
uses: simbo/changes-since-last-release-action@v1 | ||
- name: Get latest version | ||
id: substring | ||
run: | | ||
ver=$(echo "${{ steps.changes.outputs.last-tag }}" | cut -c2-) | ||
echo '::set-output name=version::'$ver | ||
- name: Increase version | ||
id: semver | ||
uses: matt-FFFFFF/simple-semver@v0.1.0 | ||
with: | ||
semver-input: ${{ steps.substring.outputs.version }} | ||
increment: p | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.semver.outputs.semver }} | ||
release_name: v${{ steps.semver.outputs.semver }} | ||
body: | | ||
# Changes | ||
${{ steps.changes.outputs.log }} | ||
draft: false | ||
prerelease: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'bugfix/**' | ||
- 'feature/**' | ||
|
||
jobs: | ||
build: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Lint Code Base | ||
uses: github/super-linter@v3.14.3 | ||
env: | ||
VALIDATE_ALL_CODEBASE: true | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.bundle/* | ||
!.bundle/config | ||
.vscode/* | ||
!.vscode/settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"cSpell.words": [ | ||
"andrewmcodes", | ||
"appium", | ||
"bewuethr", | ||
"burdzwastaken", | ||
"hadolint", | ||
"ibiqlik", | ||
"issuehunt", | ||
"liberapay", | ||
"markdownlint", | ||
"semver", | ||
"simbo", | ||
"sloc", | ||
"vulns", | ||
"yamllint" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
FROM ruby:2.7.1-buster | ||
FROM ruby:3.0.0-buster | ||
|
||
RUN apt-get update ;\ | ||
apt-get install -y --no-install-recommends cmake=3.13.4-1 ruby-dev=1:2.5.1 ;\ | ||
apt-get clean ;\ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN gem install bundler -v 2.1.4 | ||
RUN apt-get update && apt-get install -y --no-install-recommends cmake=3.13.4-1 ruby-dev=1:2.5.1 ;\ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN gem install bundler -v 2.2.4 | ||
|
||
COPY Gemfile /Gemfile | ||
RUN bundle install | ||
RUN cat Gemfile.lock | ||
|
||
COPY linguist.rb /linguist.rb | ||
COPY docker-entrypoint.sh / | ||
RUN chmod +x /docker-entrypoint.sh | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source 'https://rubygems.org' do | ||
gem 'github-linguist', '7.8.0' | ||
gem 'github-linguist', '7.12.2' | ||
end |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.