mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 14:37:41 +00:00
f04c669143
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
41 lines
1003 B
YAML
41 lines
1003 B
YAML
name: ci
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '**.md'
|
|
jobs:
|
|
build-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2.1.2
|
|
with:
|
|
node-version: 14
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: ${{ runner.os }}-node-
|
|
- name: Add problem matcher
|
|
run: echo "::add-matcher::.github/xo-problem-matcher.json"
|
|
- name: Pull dependencies
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
npm run lint
|
|
build-docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: dorny/paths-filter@v2.5.1
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
docker:
|
|
- 'Dockerfile'
|
|
- name: Build image
|
|
if: steps.filter.outputs.docker == 'true'
|
|
run: docker build .
|