Skip to content

Commit

Permalink
updatre runners
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Jan 5, 2025
1 parent 26bd827 commit 0e7a44c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 33 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/aws-deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ap-southeast-2

# log the sha 256 hash of the redis dump
# - name: Log Redis Dump Hash
# run: sha256sum ./.redis/dump.rdb

# start redis & check if it is running
- name: Start Redis
working-directory: ./crawler
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/aws-deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ap-southeast-2

# log the sha 256 hash of the redis dump
- name: Log Redis Dump Hash
run: sha256sum ./.redis/dump.rdb

# start redis & check if it is running
- name: Start Redis
working-directory: ./crawler
Expand All @@ -77,16 +73,16 @@ jobs:

# Install + Cache Crawler Dependencies
- name: Cache Node Modules | Crawler
id: cache-crawler-npm
id: cache-crawler-yarn
uses: actions/cache@v3
env:
cache-name: cache-crawler-npm
cache-name: cache-crawler-yarn
with:
path: ./crawler/node_modules/
key: cache-crawler-yarn-${{ hashFiles('crawler/yarn.lock') }}

- name: Install Node Modules | Crawler
if: steps.cache-crawler-npm.outputs.cache-hit != 'true'
if: steps.cache-crawler-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./crawler

Expand All @@ -101,16 +97,16 @@ jobs:

# Install + Cache Frontend Dependencies
- name: Cache Node Modules | Frontend
id: cache-frontend-npm
id: cache-frontend-yarn
uses: actions/cache@v3
env:
cache-name: cache-frontend-npm
cache-name: cache-frontend-yarn
with:
path: ${{ github.workspace }}/frontend/node_modules/
key: cache-frontend-npm-${{ hashFiles('frontend/yarn.lock') }}
key: cache-frontend-yarn-${{ hashFiles('frontend/yarn.lock') }}

- name: Install Node Modules | Frontend
if: steps.cache-frontend-npm.outputs.cache-hit != 'true'
if: steps.cache-frontend-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ${{ github.workspace }}/frontend

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/crawler-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:

# Install + Cache Crawler Dependencies
- name: Cache Node Modules | Crawler
id: cache-crawler-npm
id: cache-crawler-yarn
uses: actions/cache@v3
env:
cache-name: cache-crawler-npm
cache-name: cache-crawler-yarn
with:
path: ${{ github.workspace }}/crawler/node_modules/
key: cache-crawler-yarn-${{ hashFiles('crawler/yarn.lock') }}

- name: Install Node Modules | Crawler
if: steps.cache-crawler-npm.outputs.cache-hit != 'true'
if: steps.cache-crawler-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ${{ github.workspace }}/crawler

Expand All @@ -56,16 +56,16 @@ jobs:

# Install + Cache Crawler Dependencies
- name: Cache Node Modules | Crawler
id: cache-crawler-npm
id: cache-crawler-yarn
uses: actions/cache@v3
env:
cache-name: cache-crawler-npm
cache-name: cache-crawler-yarn
with:
path: ${{ github.workspace }}/crawler/node_modules/
key: cache-crawler-yarn-${{ hashFiles('crawler/yarn.lock') }}

- name: Install Node Modules | Crawler
if: steps.cache-crawler-npm.outputs.cache-hit != 'true'
if: steps.cache-crawler-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ${{ github.workspace }}/crawler

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/frontend-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:

# Install + Cache Frontend Dependencies
- name: Cache Node Modules | Frontend
id: cache-frontend-npm
id: cache-frontend-yarn
uses: actions/cache@v3
env:
cache-name: cache-frontend-npm
cache-name: cache-frontend-yarn
with:
path: ${{ github.workspace }}/frontend/node_modules/
key: cache-frontend-npm-${{ hashFiles('frontend/yarn.lock') }}
key: cache-frontend-yarn-${{ hashFiles('frontend/yarn.lock') }}

- name: Install Node Modules | Frontend
if: steps.cache-frontend-npm.outputs.cache-hit != 'true'
if: steps.cache-frontend-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ${{ github.workspace }}/frontend

Expand All @@ -56,16 +56,16 @@ jobs:

# Install + Cache Frontend Dependencies
- name: Cache Node Modules | Frontend
id: cache-frontend-npm
id: cache-frontend-yarn
uses: actions/cache@v3
env:
cache-name: cache-frontend-npm
cache-name: cache-frontend-yarn
with:
path: ${{ github.workspace }}/frontend/node_modules/
key: cache-frontend-npm-${{ hashFiles('frontend/yarn.lock') }}
key: cache-frontend-yarn-${{ hashFiles('frontend/yarn.lock') }}

- name: Install Node Modules | Frontend
if: steps.cache-frontend-npm.outputs.cache-hit != 'true'
if: steps.cache-frontend-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ${{ github.workspace }}/frontend

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/publish-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ap-southeast-2

# log the sha 256 hash of the redis dump
- name: Log Redis Dump Hash
run: sha256sum ./.redis/dump.rdb

# start redis & check if it is running
- name: Start Redis
working-directory: ./crawler
Expand Down

0 comments on commit 0e7a44c

Please sign in to comment.