Skip to content

Commit

Permalink
Adapt CI workflow "on" run configurations from "tmpl" template reposi…
Browse files Browse the repository at this point in the history
…tory (#19)

Before the CI workflow only used the `push` configuration for the `on`
field. To improve the performance a more fine grained configuration is
now used that has already been defined in the "tmpl" template
repository [1]:

- Only runs on pushes to the `main` branch.
- Only runs on pushes for `v*` tags.
- Always runs for pushes to PRs.

These changes help to keep the required GitHub Action run minutes for
the account of this repository as small as possible without wasting
resources for unnecessary runs.

[1]: https://github.com/svengreb/tmpl

Resolves GH-18
  • Loading branch information
svengreb committed Sep 25, 2020
1 parent bda13d8 commit ec1539c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
# GitHub Action Workflow for continuous integration jobs.
# See https://docs.github.com/en/actions and https://github.com/features/actions for more details.

name: CI
on: [push]
name: ci
on:
push:
branches:
- main
tags:
- v*
pull_request:

jobs:
lint-node:
Expand Down

0 comments on commit ec1539c

Please sign in to comment.