Skip to content

Commit

Permalink
Merge pull request #74 from SaulMoro/feature/new-repo
Browse files Browse the repository at this point in the history
feat: new repo
  • Loading branch information
SaulMoro authored Mar 21, 2024
2 parents 162c754 + 11a5483 commit e08bd74
Show file tree
Hide file tree
Showing 20 changed files with 1,403 additions and 1,181 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-mails-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ngrx-rtk-query": patch
---

new repository
5 changes: 5 additions & 0 deletions .changeset/quick-laws-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ngrx-rtk-query": patch
---

Update RTK to v2.2.2
2 changes: 1 addition & 1 deletion .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Sets up Node.js and runs install'
runs:
using: composite
steps:
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
run_install: false

Expand Down
4 changes: 1 addition & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
'📌 area: examples':
- any: ['examples/**/*']

'📌 area: docs web':
- any: ['docs/**/*']

'📚 documentation':
- any: ['docs/**/*']
- any: ['**/*.md']

'📌 area: ci':
Expand Down
43 changes: 35 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint commit messages
Expand All @@ -24,11 +24,36 @@ jobs:
failOnWarnings: true
helpURL: https://github.com/SaulMoro/ngrx-rtk-query/blob/main/.github/CONTRIBUTING.md#-commit-message-guidelines

check-changeset:
runs-on: ubuntu-latest
name: Check Changeset
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/composite-actions/install
- name: Check and Validate Changes in /packages/ngrx-rtk-query
run: |
git fetch origin main:main
changes=$(git diff --name-only main...${{ github.sha }} | grep '^packages/ngrx-rtk-query/' || true)
if [[ -n "$changes" ]]; then
echo "Changes detected in /packages/ngrx-rtk-query: $changes"
pnpm changeset status --since origin/main
exit_status=$?
if [[ $exit_status -eq 0 ]]; then
echo "Changeset validation succeeded."
else
echo "Changeset validation failed."
fi
else
echo "No changes detected in /packages/ngrx-rtk-query"
fi
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/composite-actions/install
Expand All @@ -38,17 +63,17 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/composite-actions/install
- name: Validate
run: pnpm exec nx-cloud record -- nx format:check
run: pnpm exec nx-cloud record -- pnpm format:check

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/composite-actions/install
Expand All @@ -60,7 +85,7 @@ jobs:
needs:
- build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/composite-actions/install
Expand All @@ -72,9 +97,11 @@ jobs:
needs:
- build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/composite-actions/install
- name: Install Playwright
run: npx playwright install --with-deps
- name: End-to-end test
run: pnpm affected:e2e-ci
run: pnpm affected:e2e
5 changes: 3 additions & 2 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Adapted from create-t3-app.
name: Label PR and check title
name: PR Checks

on:
pull_request_target:
branches: ['*']
types: ['opened', 'synchronize']

jobs:
lint-pr-title:
Expand All @@ -21,7 +22,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
sync-labels: true
2 changes: 1 addition & 1 deletion .github/workflows/prerelease-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
number: ${{ env.WORKFLOW_RUN_PR }}
message: |
A new prerelease is available for testing. You can install this latest build in your project with:
A new ngrx-rtk-query prerelease is available for testing. You can install this latest build in your project with:
```sh
pnpm install ngrx-rtk-query@${{ env.BETA_PACKAGE_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/coverage
/tmp
/.nx/cache
.changeset
.angular
.astro
.prettierignore
Expand Down
30 changes: 15 additions & 15 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand All @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
[[email protected]](mailto:[email protected]).
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand All @@ -116,13 +116,13 @@ the community.

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
<https://www.contributor-covenant.org/faq>. Translations are available at
<https://www.contributor-covenant.org/translations>.
7 changes: 6 additions & 1 deletion examples/basic-ngrx-store/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@
},
"test": {
"executor": "@analogjs/platform:vitest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"]
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"configurations": {
"watch": {
"watch": true
}
}
}
}
}
2 changes: 1 addition & 1 deletion examples/basic-ngrx-store/src/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* - Please do NOT serve this file on production.
*/

const PACKAGE_VERSION = '2.2.8';
const PACKAGE_VERSION = '2.2.9';
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423';
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse');
const activeClientIds = new Set();
Expand Down
1 change: 1 addition & 0 deletions examples/basic-ngrx-store/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineConfig(({ mode }) => {
environment: 'jsdom',
setupFiles: ['src/test-setup.ts'],
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
passWithNoTests: true,
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/examples/basic-ngrx-store',
Expand Down
5 changes: 2 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
"watch": {
"watch": true
}
}
},
Expand Down
Loading

0 comments on commit e08bd74

Please sign in to comment.