Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Apr 3, 2024
1 parent d1186ef commit 8446e74
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn

- run: yarn install --pure-lockfile
- run: yarn typecheck
- run: yarn test
- run: yarn build

- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 5 additions & 5 deletions test/__snapshots__/cache.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Map {
Symbol(lastName): "Acthernoene",
Symbol(firstName): "Mathieu",
Symbol(identificationLevels): {
Symbol(__typename): undefined,
Symbol(__typename): "IdentificationLevels",
Symbol(expert): true,
Symbol(PVID): true,
Symbol(QES): false,
Expand Down Expand Up @@ -265,8 +265,8 @@ Map {
Symbol(__typename): "Mutation",
Symbol(bindAccountMembership({"input":{"accountMembershipId":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}})): {
Symbol(__typename): "BindAccountMembershipSuccessPayload",
Symbol(message): "Account is in invalid status",
Symbol(accountMembership): Symbol(AccountMembership<account-membership-2>),
Symbol(message): undefined,
},
},
},
Expand Down Expand Up @@ -337,7 +337,7 @@ Map {
Symbol(firstName): "Matthias",
Symbol(lastName): "Le Brun",
Symbol(identificationLevels): {
Symbol(__typename): undefined,
Symbol(__typename): "IdentificationLevels",
Symbol(expert): true,
Symbol(PVID): true,
Symbol(QES): true,
Expand Down Expand Up @@ -377,7 +377,7 @@ Map {
Symbol(lastName): "Acthernoene",
Symbol(firstName): "Mathieu",
Symbol(identificationLevels): {
Symbol(__typename): undefined,
Symbol(__typename): "IdentificationLevels",
Symbol(expert): true,
Symbol(PVID): true,
Symbol(QES): false,
Expand Down Expand Up @@ -419,8 +419,8 @@ Map {
Symbol(__typename): "Mutation",
Symbol(bindAccountMembership({"input":{"accountMembershipId":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}})): {
Symbol(__typename): "BindAccountMembershipSuccessPayload",
Symbol(message): "Account is in invalid status",
Symbol(accountMembership): Symbol(AccountMembership<account-membership-2>),
Symbol(message): undefined,
},
},
},
Expand Down
2 changes: 2 additions & 0 deletions test/cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ test("Write & read in cache", () => {
getAppQueryResponse({
user2LastName: "Acthernoene",
user1IdentificationLevels: {
__typename: "IdentificationLevels",
expert: true,
PVID: true,
QES: true,
Expand All @@ -136,6 +137,7 @@ test("Write & read in cache", () => {
getAppQueryResponse({
user2LastName: "Acthernoene",
user1IdentificationLevels: {
__typename: "IdentificationLevels",
expert: true,
PVID: true,
QES: true,
Expand Down
2 changes: 2 additions & 0 deletions test/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export const getAppQueryResponse = ({
}: {
user2LastName: string;
user1IdentificationLevels: {
__typename: "IdentificationLevels";
expert: boolean;
PVID: boolean;
QES: boolean;
Expand Down Expand Up @@ -267,6 +268,7 @@ export const bindMembershipMutationSuccessResponse = {
firstName: "Mathieu",
lastName: "Acthernoene",
identificationLevels: {
__typename: "IdentificationLevels",
expert: true,
PVID: true,
QES: false,
Expand Down

0 comments on commit 8446e74

Please sign in to comment.