Skip to content

chore: run builds on pull requests #2866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: ci

on: [push]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Run ./ci/steps/fmt.sh
uses: ./ci/images/debian10
with:
Expand All @@ -15,7 +21,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Run ./ci/steps/lint.sh
uses: ./ci/images/debian10
with:
Expand All @@ -28,7 +34,7 @@ jobs:
PASSWORD: e45432jklfdsab
CODE_SERVER_ADDRESS: http://localhost:8080
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Download release packages
uses: actions/download-artifact@v2
with:
Expand All @@ -55,7 +61,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Run ./ci/steps/release.sh
uses: ./ci/images/debian10
with:
Expand All @@ -70,7 +76,7 @@ jobs:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Download npm package
uses: actions/download-artifact@v2
with:
Expand All @@ -90,7 +96,7 @@ jobs:
needs: release
runs-on: ubuntu-arm64-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Download npm package
uses: actions/download-artifact@v2
with:
Expand All @@ -111,8 +117,10 @@ jobs:
macos-amd64:
needs: release
runs-on: macos-latest
# This job requires secrets, so can only run on the default branch
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Download npm package
uses: actions/download-artifact@v2
with:
Expand All @@ -133,7 +141,7 @@ jobs:
runs-on: ubuntu-latest
needs: linux-amd64
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Download release package
uses: actions/download-artifact@v2
with:
Expand All @@ -153,7 +161,7 @@ jobs:
runs-on: ubuntu-arm64-latest
needs: linux-arm64
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Download release package
uses: actions/download-artifact@v2
with:
Expand Down