fix universal breaking from merging mobile into dev #560
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: Eslint | |
on: | |
pull_request: | |
branches: | |
- "main" | |
- "dev" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
CI: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
registry-url: https://npm.pkg.github.com/ | |
- name: Install @metacraft/cli | |
run: npm i --location=global @metacraft/cli | |
- name: Install yarn cli | |
run: corepack enable && corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn | |
- name: Execute eslint | |
run: yarn lint | |
- name: Run test cases | |
run: yarn test | |
- name: Set branch name | |
id: branch | |
run: echo "::set-output name=BRANCH_NAME::${GITHUB_REF##*/}" | |
- name: Deploy | |
run: yarn deploy | |
if: github.ref == 'refs/heads/dev' |