Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Oct 1, 2024
1 parent 79ca4eb commit 33a5b2d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/one-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ name: One-Step

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [feat/ibc-wasm]
release:
types: [fix/hmstr]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,7 +17,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
node-version: [18]

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
Expand All @@ -31,19 +31,33 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm install -g yarn
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
# - uses: everpcpc/actions-cache@v2
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: 'us-east-2'
# with:
# bucket: ${{ secrets.AWS_BUCKET_NAME }} # required
# path: |
# node_modules
# .cache
# key: ${{ runner.os }}/yarn/${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}/yarn/
- name: Install Dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --ignore-scripts
- name: Copy testnet env
# run: yarn install --ignore-scripts
run: yarn
- name: Copy env
run: cp .env.example .env
- name: Build
- name: Build Production
run: yarn build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
REACT_APP_SENTRY_ENVIRONMENT: production
CI: false
- name: Deploy staging testnet
run: yarn firebase deploy --only hosting:oraiswap-testnet --token ${{ secrets.FIREBASE_TOKEN }} -m "${{ github.event.head_commit.message }}"
- name: Deploy to firebase
run: yarn firebase deploy --only hosting:oraiswap --token ${{ secrets.FIREBASE_TOKEN }}
2 changes: 1 addition & 1 deletion scripts/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const path = require('path');
const fs = require('fs');
const packageJson = require('../package.json');
const { fallback } = require('../config-overrides');
const ignores = ['@oraichain/oraidex-common'];
const ignores = [];
const chalk = require('react-dev-utils/chalk');
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');

Expand Down

0 comments on commit 33a5b2d

Please sign in to comment.