mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 15:47:35 +00:00
0683430768
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.2 to v2.1.3. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.1.2...27082cecf3ff7a1742dbd5e12605f0cb59dce2d9) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
1008 B
YAML
40 lines
1008 B
YAML
name: ci
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build-and-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2.1.3
|
|
with:
|
|
node-version: 14.15.0
|
|
- 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.6.0
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
build:
|
|
- 'Dockerfile'
|
|
- 'package*.json'
|
|
- name: Build image
|
|
if: steps.filter.outputs.build == 'true'
|
|
run: docker build .
|