Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
chore: add github action to validate PR's (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen authored Oct 29, 2023
1 parent d1e8c02 commit 16e73d3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
.angular/

dist/
1 change: 0 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- v*
- Beta*
workflow_dispatch: {}

jobs:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate a pull request

on:
pull_request:
branches:
- main
workflow_dispatch: { }

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install node modules
run: yarn install --frozen-lockfile

- name: Run linter
run: yarn lint

- name: Build
run: yarn build

0 comments on commit 16e73d3

Please sign in to comment.