Skip to content

Commit 412251a

Browse files
StephanGerbethrenovate[bot]semantic-release-bot
authored
Beta (#24)
* chore(deps): pin dependencies * fix(semver): test * fix(semver): test * fix(semver): test * fix(semver): implemented monorepo config & workflow * chore(release): 1.0.0-beta.1 [skip ci] # @rxjs-collection/operators-v1.0.0-beta.1 (2024-09-09) ### Bug Fixes * **git-workflow:** added yml for main and beta ([8fda8d9](8fda8d9)) * **semver:** implemented monorepo config & workflow ([d73a02b](d73a02b)) * **semver:** test ([455516b](455516b)) * **test:** added forgotten successful empty runs ([7304362](7304362)) ### Features * **setup:** init ([a01e5e3](a01e5e3)) * chore(release): 1.0.0-beta.1 [skip ci] # @rxjs-collection/observables-v1.0.0-beta.1 (2024-09-09) ### Bug Fixes * **git-workflow:** added yml for main and beta ([8fda8d9](8fda8d9)) * **semver:** implemented monorepo config & workflow ([d73a02b](d73a02b)) * **test:** added successful empty run in package json ([6c237cf](6c237cf)) ### Features * **setup:** init ([a01e5e3](a01e5e3)) * fix(semver): prevent npm publish * chore(release): 1.0.0-beta.2 [skip ci] # [@rxjs-collection/operators-v1.0.0-beta.2](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.0-beta.1...@rxjs-collection/operators-v1.0.0-beta.2) (2024-09-09) ### Bug Fixes * **semver:** prevent npm publish ([1c3e233](1c3e233)) * chore(release): 1.0.0-beta.2 [skip ci] # [@rxjs-collection/observables-v1.0.0-beta.2](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.0-beta.1...@rxjs-collection/observables-v1.0.0-beta.2) (2024-09-09) ### Bug Fixes * **semver:** prevent npm publish ([1c3e233](1c3e233)) * fix(packages): removed private attr in package.json * chore(release): 1.0.0-beta.3 [skip ci] # [@rxjs-collection/operators-v1.0.0-beta.3](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.0-beta.2...@rxjs-collection/operators-v1.0.0-beta.3) (2024-09-09) ### Bug Fixes * **packages:** removed private attr in package.json ([ed66028](ed66028)) * chore(release): 1.0.0-beta.3 [skip ci] # [@rxjs-collection/observables-v1.0.0-beta.3](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.0-beta.2...@rxjs-collection/observables-v1.0.0-beta.3) (2024-09-09) ### Bug Fixes * **packages:** removed private attr in package.json ([ed66028](ed66028)) * chore(deps): pin dependency semantic-release to 24.1.0 * fix(renovate): updated config * chore(project): small cleanup * chore(deps): pin dependency rxjs to 7.8.1 * feat(sonarcloud): added to github actions * chore(deps): update actions/checkout action to v4 * fix(sonarcloud): added forgotten os strategy * fix(project): added badges to readme * fix(operators): added initial mocha setup * fix(mocha): updated setup * fix(mocha): first test with mocked data * fix(mocha): fixed async prob in first test * fix(mocha): renamed mockFunctions * fix(mocha): restructured test folder * fix(test): corrected outline * chore(deps): update dependency husky to v9.1.6 * chore(deps): update dependency semantic-release to v24.1.1 * chore(deps): update dependency @commitlint/config-conventional to v19.5.0 * chore(deps): update dependency commitlint to v19.5.0 * fix(mocha): added async event marble test * fix(test): switched from mocha to vitest * fix(dom/window): fixed mockreset status * fix(vitest): added test cases * fix(package-lock): update * chore(deps): update dependency @semantic-release/github to v10.3.4 * chore(release): 1.0.0-beta.4 [skip ci] # [@rxjs-collection/operators-v1.0.0-beta.4](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.0-beta.3...@rxjs-collection/operators-v1.0.0-beta.4) (2024-09-15) ### Bug Fixes * **mocha:** restructured test folder ([ff621f2](ff621f2)) * **mocha:** updated setup ([793c14f](793c14f)) * **operators:** added initial mocha setup ([756c589](756c589)) * **test:** corrected outline ([f214cd1](f214cd1)) * **test:** switched from mocha to vitest ([52425e1](52425e1)) * **vitest:** added test cases ([7c3a090](7c3a090)) * chore(release): 1.0.0-beta.4 [skip ci] # [@rxjs-collection/observables-v1.0.0-beta.4](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.0-beta.3...@rxjs-collection/observables-v1.0.0-beta.4) (2024-09-15) ### Bug Fixes * **dom/window:** fixed mockreset status ([cdc5dae](cdc5dae)) * **mocha:** added async event marble test ([f8e5bdb](f8e5bdb)) * **mocha:** first test with mocked data ([e1344d9](e1344d9)) * **mocha:** fixed async prob in first test ([a5ba14e](a5ba14e)) * **mocha:** renamed mockFunctions ([f59866f](f59866f)) * **mocha:** updated setup ([793c14f](793c14f)) * **test:** switched from mocha to vitest ([52425e1](52425e1)) * **vitest:** added test cases ([7c3a090](7c3a090)) * fix(sonarcloud+action): added new rules * fix(vitest): workspace coverage * chore(release): 1.0.0-beta.5 [skip ci] # [@rxjs-collection/operators-v1.0.0-beta.5](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/operators-v1.0.0-beta.4...@rxjs-collection/operators-v1.0.0-beta.5) (2024-09-15) ### Bug Fixes * **vitest:** workspace coverage ([e2ed1ec](e2ed1ec)) * chore(deps): pin dependencies * chore(deps): update dependency semantic-release to v24.1.1 * chore(deps): lock file maintenance (#17) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(action): modified workflow for beta (#18) * fix(action): modified workflow for beta * fix(action): embedded test & coverage * fix(action): rename process * fix(action): rerun workflow if pr was edited * fix(action): upload & download coverage artifact * fix(action): artifact build fix * fix(action): added new coverage reporter * fix(action): run beta on sync * fix(vitest): added lcov as coverage reporter * fix(sonarcloud): added vitest lcov report to sonar * fix(action): test * fix(action): test * fix(action): test * fix(action): download coverage to folder * fix(action): test * fix(readme): added some todos (#19) * fix(security-hotspot): cleanup (#21) * chore(release): 1.0.0-beta.5 [skip ci] # [@rxjs-collection/observables-v1.0.0-beta.5](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.0-beta.4...@rxjs-collection/observables-v1.0.0-beta.5) (2024-09-16) ### Bug Fixes * **security-hotspot:** cleanup ([#21](#21)) ([d96c3dc](d96c3dc)) * Feature/pr (#23) * fix(git-action): modified and added actions * fix(git-action): updated main workflow * fix(action): Update pull_request.yml --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: semantic-release-bot <[email protected]>
1 parent d38881a commit 412251a

File tree

2 files changed

+148
-2
lines changed

2 files changed

+148
-2
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,40 @@ jobs:
4141
- name: Lint
4242
run: npm run lint
4343

44-
- name: Test
45-
run: npm run test
44+
- name: Vitest - Test & Coverage
45+
run: npm run coverage
46+
47+
- name: Archive vitest code coverage results
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: vitest-code-coverage-report
51+
path: ./coverage/
52+
53+
sonarcloud:
54+
name: SonarCloud
55+
runs-on: ${{ matrix.os }}
56+
57+
strategy:
58+
matrix:
59+
os: [ubuntu-latest]
60+
node: [20]
61+
62+
steps:
63+
- uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
66+
- name: Download vitest code coverage results
67+
uses: actions/download-artifact@v4
68+
with:
69+
name: vitest-code-coverage-report
70+
path: ./coverage/
71+
- name: check
72+
run: cd coverage && find .
73+
- name: SonarCloud Scan
74+
uses: SonarSource/sonarcloud-github-action@master
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
77+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4678

4779
sonarcloud:
4880
name: SonarCloud

.github/workflows/pull_request.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: PullRequest
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
10+
branches:
11+
- beta
12+
- main
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
install:
20+
if: "!contains(github.event.head_commit.message, 'skip ci')"
21+
name: Install
22+
runs-on: ${{ matrix.os }}
23+
24+
strategy:
25+
matrix:
26+
os: [ubuntu-latest]
27+
node: [20]
28+
29+
steps:
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node }}
33+
- name: Checkout Repo
34+
uses: actions/checkout@v4
35+
- name: cache node_modules
36+
uses: actions/cache@v4
37+
id: cache
38+
with:
39+
path: |
40+
node_modules
41+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
42+
43+
- name: Install Dependencies
44+
if: steps.cache.outputs.cache-hit != 'true'
45+
run: npm ci
46+
47+
- name: Lint
48+
run: npm run lint
49+
50+
- name: Vitest - Test & Coverage
51+
run: npm run coverage
52+
53+
- name: Archive vitest code coverage results
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: vitest-code-coverage-report
57+
path: ./coverage/
58+
59+
sonarcloud:
60+
name: SonarCloud
61+
needs: install
62+
runs-on: ${{ matrix.os }}
63+
64+
strategy:
65+
matrix:
66+
os: [ubuntu-latest]
67+
node: [20]
68+
69+
steps:
70+
- uses: actions/checkout@v4
71+
with:
72+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
73+
- name: Download vitest code coverage results
74+
uses: actions/download-artifact@v4
75+
with:
76+
name: vitest-code-coverage-report
77+
path: ./coverage/
78+
- name: check
79+
run: cd coverage && find .
80+
- name: SonarCloud Scan
81+
uses: SonarSource/sonarcloud-github-action@master
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
84+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
85+
86+
semantic-version:
87+
name: Semantic Release
88+
needs: sonarcloud
89+
runs-on: ${{ matrix.os }}
90+
91+
strategy:
92+
matrix:
93+
os: [ubuntu-latest]
94+
node: [20]
95+
96+
steps:
97+
- uses: actions/setup-node@v4
98+
with:
99+
node-version: ${{ matrix.node }}
100+
- name: Checkout Repo
101+
uses: actions/checkout@v4
102+
- name: cache node_modules
103+
uses: actions/cache@v4
104+
id: cache
105+
with:
106+
path: node_modules
107+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
108+
- name: Versioning
109+
env:
110+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
113+
run: |
114+
npm run release

0 commit comments

Comments
 (0)