Skip to content

Commit

Permalink
Actions: Only run CI on PR (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 19, 2021
1 parent db8da26 commit 92938e4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml → .github/workflows/ci.yml
@@ -1,17 +1,21 @@
name: CI

on: [push, pull_request]
on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
build:

runs-on: ubuntu-latest

container:
image: elementary/docker:odin-unstable

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
apt update
Expand All @@ -22,13 +26,12 @@ jobs:
ninja -C build
lint:

runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Lint
run: io.elementary.vala-lint -d .

0 comments on commit 92938e4

Please sign in to comment.