Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 20: mapping key "runs-on" already defined at line 17 line 22: mapping key "steps" already defined at line 19 line 47: mapping key "runs-on" already defined at line 44 line 49: mapping key "steps" already defined at line 46
Daniel Lautzenheiser de2212eae8
Update build.yml
2022-12-01 13:28:46 -05:00

68 lines
1.1 KiB
YAML

name: Build
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- core/**
pull_request:
branches: [ "main" ]
paths:
- core/**
jobs:
build:
needs: setup
runs-on: ubuntu-latest
steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
cache-dependency-path: core/yarn.lock
node-version: 16
- name: Install
working-directory: ./core
run: |
yarn install --frozen-lockfile
- name: Build
working-directory: ./core
run: |
yarn build
lint:
needs: setup
runs-on: ubuntu-latest
steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
cache-dependency-path: core/yarn.lock
node-version: 16
- name: Install
working-directory: ./core
run: |
yarn install --frozen-lockfile
- name: Lint
working-directory: ./core
run: |
yarn lint