Merge pull request #156 from TriPSs/TriPSs-patch-1
ci: Also run tests on pr's to release branchesreleases/v3
commit
d040501d92
|
@ -3,6 +3,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- releases/*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-json:
|
test-json:
|
||||||
|
@ -15,10 +16,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -50,10 +50,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -85,10 +84,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- run: touch ./test-file-empty.json
|
- run: touch ./test-file-empty.json
|
||||||
|
|
||||||
|
@ -126,7 +124,7 @@ jobs:
|
||||||
- run: git tag | xargs git tag -d
|
- run: git tag | xargs git tag -d
|
||||||
- name: Create fake tag
|
- name: Create fake tag
|
||||||
run: "git tag -a 'v0.55.8' -m 'v0.55.8'"
|
run: "git tag -a 'v0.55.8' -m 'v0.55.8'"
|
||||||
- run: "git add . && git commit -m 'fix: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'fix: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -155,7 +153,7 @@ jobs:
|
||||||
- run: git tag | xargs git tag -d
|
- run: git tag | xargs git tag -d
|
||||||
- name: Create fake tag
|
- name: Create fake tag
|
||||||
run: "git tag -a 'v0.55.8' -m 'v0.55.8'"
|
run: "git tag -a 'v0.55.8' -m 'v0.55.8'"
|
||||||
- run: "git add . && git commit -m 'fix: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'fix: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -180,10 +178,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- run: git tag | xargs git tag -d
|
- run: git tag | xargs git tag -d
|
||||||
|
|
||||||
|
@ -214,7 +211,7 @@ jobs:
|
||||||
- run: git tag | xargs git tag -d
|
- run: git tag | xargs git tag -d
|
||||||
- name: Create fake tag
|
- name: Create fake tag
|
||||||
run: "git tag -a 'v0.55.8' -m 'v0.55.8'"
|
run: "git tag -a 'v0.55.8' -m 'v0.55.8'"
|
||||||
- run: "git add . && git commit -m 'fix: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'fix: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -239,10 +236,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -310,10 +306,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- run: touch ./test-file-empty.yaml
|
- run: touch ./test-file-empty.yaml
|
||||||
|
|
||||||
|
@ -349,10 +344,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -386,10 +380,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -423,10 +416,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -460,10 +452,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- run: touch ./test-file-empty.toml
|
- run: touch ./test-file-empty.toml
|
||||||
|
|
||||||
|
@ -500,10 +491,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- run: test -f pre-commit.test.json && (echo should not be here yet && exit 1) || exit 0
|
- run: test -f pre-commit.test.json && (echo should not be here yet && exit 1) || exit 0
|
||||||
|
|
||||||
|
@ -533,10 +523,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- run: test -f pre-changelog-generation.test.json && (echo should not be here yet && exit 1) || exit 0
|
- run: test -f pre-changelog-generation.test.json && (echo should not be here yet && exit 1) || exit 0
|
||||||
|
|
||||||
|
@ -568,10 +557,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -610,10 +598,9 @@ jobs:
|
||||||
|
|
||||||
- run: npm ci --prod
|
- run: npm ci --prod
|
||||||
|
|
||||||
- run: touch ./fake-file.log
|
|
||||||
- run: "git config --global user.email 'changelog@github.com'"
|
- run: "git config --global user.email 'changelog@github.com'"
|
||||||
- run: "git config --global user.name 'Awesome Github action'"
|
- run: "git config --global user.name 'Awesome Github action'"
|
||||||
- run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'"
|
- run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'"
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
|
Loading…
Reference in New Issue