Skip to content

Commit

Permalink
use yarn cache for github actions (#588)
Browse files Browse the repository at this point in the history
* use yarn cache for github actions

* update the readme
  • Loading branch information
nikgraf authored Jan 14, 2023
1 parent 620af62 commit b462592
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Build
working-directory: ./apps/backend
run: yarn build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/desktop-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build, package & make
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-and-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Typecheck
Expand All @@ -21,6 +22,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Typecheck
Expand All @@ -32,6 +34,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Setup .env
run: cp apps/backend/.env.example apps/backend/.env
- name: Run Database
Expand All @@ -49,6 +52,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
Expand All @@ -66,6 +70,7 @@ jobs:
- uses: actions/setup-node@v3 # needed until 18 becomes the default
with:
node-version: 18
cache: yarn
- name: Setup .env
run: cp apps/backend/.env.example apps/backend/.env
- name: Run Database
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ yarn dev
# in the console press `i` for iOS or `a` for Android or use the Expo Web-interface
```

Creating a dev build for iOS Simulator.
Creating a dev build for iOS Simulator

```sh
cd apps/app
yarn eas build --profile development-simulator --platform ios
```

Creating a dev build for iOS.
Creating a dev build for iOS

```sh
cd apps/app
yarn eas build --profile development --platform ios
```

Creating a preview build for internal distribution.
Creating a preview build for internal distribution

```sh
cd apps/app
Expand Down Expand Up @@ -110,22 +110,22 @@ yarn dev

## Tests

For backend:
For backend

```sh
docker-compose up # to start the postgres instance
# in another tab
yarn workspace backend test
```

To reset the test DB migrations run:
To reset the test DB migrations run

```sh
cd apps/backend
DATABASE_URL=postgres://prisma:prisma@localhost:5432/serenity_test yarn prisma migrate reset
```

For any package:
For any package

```sh
cd packages/libsodium
Expand Down

0 comments on commit b462592

Please sign in to comment.