Test reversibility of migrations #220
@ -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
|
|
@ -64,6 +64,37 @@ jobs:
|
|||||||
run: bundle install --jobs `getconf _NPROCESSORS_ONLN`
|
run: bundle install --jobs `getconf _NPROCESSORS_ONLN`
|
||||||
- name: Run license finder
|
- name: Run license finder
|
||||||
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:
|
build-static-assets:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -72,6 +103,7 @@ jobs:
|
|||||||
- unit_tests
|
- unit_tests
|
||||||
- rubocop
|
- rubocop
|
||||||
- check-licenses
|
- check-licenses
|
||||||
|
- copyright_notice
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user