Bump eslint from 8.23.1 to 8.54.0 #512
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: wallet-abstraction | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- '.github/workflows/wallet-abstraction.yml' | |
- '.eslintrc.js' | |
- 'tsconfig.json' | |
- 'serverless.yml' | |
- 'package.json' | |
pull_request: | |
paths: | |
- 'src/**' | |
- '.github/workflows/wallet-abstraction.yml' | |
- '.eslintrc.js' | |
- 'tsconfig.json' | |
- 'serverless.yml' | |
- 'package.json' | |
jobs: | |
lint_test: | |
name: Lint, test, build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- run: yarn install | |
- run: yarn lint | |
- run: yarn test | |
- run: yarn build | |
# No longer needed as SLS deploy has seperate artifacts with Webpack. Will need one for prod and DEV | |
# - name: 'Upload Artifact' | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: wallet-abstraction-build | |
# path: build | |
# retention-days: 1 | |
deploy: | |
name: Deploy | |
if: github.actor != 'dependabot[bot]' | |
needs: [lint_test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_GITHUB_ACTIONS_USER }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_GITHUB_ACTIONS_USER }} | |
aws-region: us-east-1 | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- run: yarn install | |
# - name: Download Build Artifact | |
# uses: actions/download-artifact@v3 | |
# with: | |
# path: build/ | |
# name: wallet-abstraction-build | |
- name: Deploy Dev | |
run: yarn deploy-ci:dev | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_GITHUB_ACTIONS_USER }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_GITHUB_ACTIONS_USER }} | |
- name: Deploy Prod | |
if: github.ref == 'refs/heads/main' | |
run: yarn deploy-ci:prod | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_GITHUB_ACTIONS_USER }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_GITHUB_ACTIONS_USER }} |