Compare commits
3 Commits
798cf564b4
...
bb7d7cbf49
Author | SHA1 | Date | |
---|---|---|---|
bb7d7cbf49 | |||
fec7efe10a | |||
fe456a3e52 |
@ -1,39 +0,0 @@
|
||||
name: Add copyright notice
|
||||
on:
|
||||
pull_request:
|
||||
permissions:
|
||||
contents: write
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
copyright_notice:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.ACTIONS_TOKEN }}
|
||||
ref: ${{ github.head_ref }}
|
||||
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
|
||||
with:
|
||||
CopyrightString: '# Copyright (C) 2024 Manuel Bustillo\n\n'
|
||||
FileType: '.rb'
|
||||
Path: 'app/, config/, db/, spec/'
|
||||
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
|
||||
with:
|
||||
CopyrightString: '<%# Copyright (C) 2024 Manuel Bustillo %>\n\n'
|
||||
FileType: '.erb'
|
||||
Path: 'app/'
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --local user.email "bustikiller@bustikiller.com"
|
||||
git config --local user.name "Manuel Bustillo"
|
||||
git add .
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "there are changes";
|
||||
git commit -m "Add copyright notice"
|
||||
git push
|
||||
else
|
||||
echo "no changes";
|
||||
fi
|
@ -1,21 +0,0 @@
|
||||
name: Check usage of free licenses
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
check-licenses:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: ruby/setup-ruby@v1.207.0
|
||||
- name: Install project dependencies
|
||||
run: bundle install --jobs `getconf _NPROCESSORS_ONLN`
|
||||
- name: Run license finder
|
||||
run: license_finder
|
@ -34,8 +34,8 @@ jobs:
|
||||
echo "Trying again"
|
||||
done
|
||||
- run: |
|
||||
bundle exec rake db:schema:load
|
||||
bundle exec rake db:migrate:redo STEP=5
|
||||
bundle exec rake db:schema:load db:migrate:status | tail -10
|
||||
# bundle exec rake db:migrate:redo STEP=5
|
||||
- run: |
|
||||
bundle exec rspec
|
||||
env:
|
||||
@ -53,12 +53,57 @@ jobs:
|
||||
- uses: ruby/setup-ruby@v1.207.0
|
||||
- run: bundle install
|
||||
- run: bundle exec rubocop --force-exclusion --parallel
|
||||
check-licenses:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: ruby/setup-ruby@v1.207.0
|
||||
- name: Install project dependencies
|
||||
run: bundle install --jobs `getconf _NPROCESSORS_ONLN`
|
||||
- name: Run license finder
|
||||
run: license_finder
|
||||
copyright_notice:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.ACTIONS_TOKEN }}
|
||||
ref: ${{ github.head_ref }}
|
||||
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
|
||||
with:
|
||||
CopyrightString: '# Copyright (C) 2024 Manuel Bustillo\n\n'
|
||||
FileType: '.rb'
|
||||
Path: 'app/, config/, db/, spec/'
|
||||
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
|
||||
with:
|
||||
CopyrightString: '<%# Copyright (C) 2024 Manuel Bustillo %>\n\n'
|
||||
FileType: '.erb'
|
||||
Path: 'app/'
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --local user.email "bustikiller@bustikiller.com"
|
||||
git config --local user.name "Manuel Bustillo"
|
||||
git add .
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "there are changes";
|
||||
git commit -m "Add copyright notice"
|
||||
git push
|
||||
exit 1
|
||||
else
|
||||
echo "no changes";
|
||||
fi
|
||||
|
||||
build-static-assets:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
needs:
|
||||
- unit_tests
|
||||
- rubocop
|
||||
- check-licenses
|
||||
- copyright_notice
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user