Skip to content

Commit e487590

Browse files
Merge pull request #35 from basics/feature/git-action-feature
Feature/git action feature
2 parents a735a5d + 8b9d65d commit e487590

File tree

5 files changed

+114
-17
lines changed

5 files changed

+114
-17
lines changed

.github/workflows/beta.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ jobs:
1313
install:
1414
if: "!contains(github.event.head_commit.message, 'skip ci')"
1515
name: Install
16-
runs-on: ${{ matrix.os }}
17-
1816
strategy:
1917
matrix:
2018
os: [ubuntu-latest]
2119
node: [20]
2220

21+
runs-on: ${{ matrix.os }}
22+
2323
steps:
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node }}
27+
2728
- name: Checkout Repo
2829
uses: actions/checkout@v4
30+
2931
- name: cache node_modules
3032
uses: actions/cache@v4
3133
id: cache
@@ -53,25 +55,28 @@ jobs:
5355
semantic-version:
5456
name: Semantic Release
5557
needs: install
56-
runs-on: ${{ matrix.os }}
57-
5858
strategy:
5959
matrix:
6060
os: [ubuntu-latest]
6161
node: [20]
6262

63+
runs-on: ${{ matrix.os }}
64+
6365
steps:
6466
- uses: actions/setup-node@v4
6567
with:
6668
node-version: ${{ matrix.node }}
69+
6770
- name: Checkout Repo
6871
uses: actions/checkout@v4
72+
6973
- name: cache node_modules
7074
uses: actions/cache@v4
7175
id: cache
7276
with:
7377
path: node_modules
7478
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
79+
7580
- name: Versioning
7681
env:
7782
GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -83,24 +88,24 @@ jobs:
8388
sonarcloud:
8489
name: SonarCloud
8590
needs: semantic-version
86-
runs-on: ${{ matrix.os }}
87-
8891
strategy:
8992
matrix:
9093
os: [ubuntu-latest]
9194
node: [20]
9295

96+
runs-on: ${{ matrix.os }}
97+
9398
steps:
9499
- uses: actions/checkout@v4
95100
with:
96101
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
102+
97103
- name: Download vitest code coverage results
98104
uses: actions/download-artifact@v4
99105
with:
100106
name: vitest-code-coverage-report
101107
path: ./coverage/
102-
- name: check
103-
run: cd coverage && find .
108+
104109
- name: SonarCloud Scan
105110
uses: SonarSource/sonarcloud-github-action@master
106111
env:

.github/workflows/feature.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Feature
2+
3+
on:
4+
push:
5+
branches:
6+
- 'feature/**'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
install:
14+
if: "!contains(github.event.head_commit.message, 'skip ci')"
15+
name: Install
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
node: [20]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node }}
27+
28+
- name: Checkout Repo
29+
uses: actions/checkout@v4
30+
31+
- name: cache node_modules
32+
uses: actions/cache@v4
33+
id: cache
34+
with:
35+
path: |
36+
node_modules
37+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
38+
39+
- name: Install Dependencies
40+
if: steps.cache.outputs.cache-hit != 'true'
41+
run: npm ci
42+
43+
- name: Lint
44+
run: npm run lint
45+
46+
- name: Vitest - Test & Coverage
47+
run: npm run coverage
48+
49+
- name: Archive vitest code coverage results
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: vitest-code-coverage-report
53+
path: ./coverage/
54+
55+
sonarcloud:
56+
name: SonarCloud
57+
needs: install
58+
strategy:
59+
matrix:
60+
os: [ubuntu-latest]
61+
node: [20]
62+
63+
runs-on: ${{ matrix.os }}
64+
65+
steps:
66+
- uses: actions/checkout@v4
67+
with:
68+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
69+
70+
- name: Download vitest code coverage results
71+
uses: actions/download-artifact@v4
72+
with:
73+
name: vitest-code-coverage-report
74+
path: ./coverage/
75+
76+
- name: SonarCloud Scan
77+
uses: SonarSource/sonarcloud-github-action@master
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
80+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/main.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ jobs:
1313
install:
1414
if: "!contains(github.event.head_commit.message, 'skip ci')"
1515
name: Install
16-
runs-on: ${{ matrix.os }}
17-
1816
strategy:
1917
matrix:
2018
os: [ubuntu-latest]
2119
node: [20]
2220

21+
runs-on: ${{ matrix.os }}
22+
2323
steps:
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node }}
27+
2728
- name: Checkout Repo
2829
uses: actions/checkout@v4
30+
2931
- name: cache node_modules
3032
uses: actions/cache@v4
3133
id: cache
@@ -53,25 +55,28 @@ jobs:
5355
semantic-version:
5456
name: Semantic Release
5557
needs: install
56-
runs-on: ${{ matrix.os }}
57-
5858
strategy:
5959
matrix:
6060
os: [ubuntu-latest]
6161
node: [20]
6262

63+
runs-on: ${{ matrix.os }}
64+
6365
steps:
6466
- uses: actions/setup-node@v4
6567
with:
6668
node-version: ${{ matrix.node }}
69+
6770
- name: Checkout Repo
6871
uses: actions/checkout@v4
72+
6973
- name: cache node_modules
7074
uses: actions/cache@v4
7175
id: cache
7276
with:
7377
path: node_modules
7478
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
79+
7580
- name: Versioning
7681
env:
7782
GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -83,24 +88,24 @@ jobs:
8388
sonarcloud:
8489
name: SonarCloud
8590
needs: semantic-version
86-
runs-on: ${{ matrix.os }}
87-
8891
strategy:
8992
matrix:
9093
os: [ubuntu-latest]
9194
node: [20]
9295

96+
runs-on: ${{ matrix.os }}
97+
9398
steps:
9499
- uses: actions/checkout@v4
95100
with:
96101
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
102+
97103
- name: Download vitest code coverage results
98104
uses: actions/download-artifact@v4
99105
with:
100106
name: vitest-code-coverage-report
101107
path: ./coverage/
102-
- name: check
103-
run: cd coverage && find .
108+
104109
- name: SonarCloud Scan
105110
uses: SonarSource/sonarcloud-github-action@master
106111
env:

packages/observables/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Project Changelog
22

3+
# [@rxjs-collection/observables-v1.0.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.0...@rxjs-collection/observables-v1.0.1) (2024-09-16)
4+
5+
6+
### Bug Fixes
7+
8+
* **observables:** removed two warnings ([52303ad](https://github.com/basics/rxjs-collection/commit/52303ad41290b6d06d74a2f172f42edb3176c8fa))
9+
310
# [@rxjs-collection/observables-v1.0.1-beta.1](https://github.com/basics/rxjs-collection/compare/@rxjs-collection/observables-v1.0.0...@rxjs-collection/observables-v1.0.1-beta.1) (2024-09-16)
411

512

packages/observables/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rxjs-collection/observables",
3-
"version": "1.0.1-beta.1",
3+
"version": "1.0.1",
44
"description": "rxjs observables",
55
"license": "MIT",
66
"contributors": [

0 commit comments

Comments
 (0)