Skip to content

Commit

Permalink
Merge pull request #15 from Concordium/add-build-pipeline
Browse files Browse the repository at this point in the history
Add build pipeline
  • Loading branch information
orhoj authored Oct 27, 2021
2 parents 8ba7404 + d7d7463 commit 41b5d71
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and lint

on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]

# Allows us to run the workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- uses: actions/setup-node@v2
with:
node-version: "14.16.0"

- name: Get dependencies
run: yarn

- name: Build gRPC
run: yarn generate

- name: Build
run: yarn build

lint:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- uses: actions/setup-node@v2
with:
node-version: "14.16.0"

- name: Get dependencies
run: yarn

- name: Lint
run: yarn lint

0 comments on commit 41b5d71

Please sign in to comment.