Replace Travis CI with GitHub Actions build/lint/test workflows (#39)

This commit is contained in:
Linus Groh
2020-06-14 16:11:20 +01:00
committed by GitHub
parent 23d73461bc
commit a1faf8153b
6 changed files with 57 additions and 10 deletions
+17
View File
@@ -0,0 +1,17 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: borales/actions-yarn@v2.0.0
with:
cmd: install
- name: Run production build
uses: borales/actions-yarn@v2.0.0
with:
cmd: build
+1 -1
View File
@@ -1,4 +1,4 @@
name: 'Build Docker images for multiple architectures'
name: Build Docker images
on:
schedule:
+21
View File
@@ -0,0 +1,21 @@
name: Lint code
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: borales/actions-yarn@v2.0.0
with:
cmd: install
- name: Lint JavaScript/Vue files
uses: borales/actions-yarn@v2.0.0
with:
cmd: lint:js
- name: Lint Markdown files
uses: borales/actions-yarn@v2.0.0
with:
cmd: lint:md
+17
View File
@@ -0,0 +1,17 @@
name: Run tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: borales/actions-yarn@v2.0.0
with:
cmd: install
- name: Run unit tests
uses: borales/actions-yarn@v2.0.0
with:
cmd: test