From f1a3ce1a7a8c7840cc165fad7aaacc44850c1fb5 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 20 Dec 2018 16:51:58 +0000 Subject: [PATCH] ci: add branch filter --- .github/main.workflow | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 8f5212a169..087844ca23 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -3,22 +3,27 @@ workflow "Nuxt.js Actions" { resolves = ["Audit", "Lint", "Test: Unit", "Test: E2E"] } +action "branch-filter" { + uses = "actions/bin/filter@master" + args = ["branch dev"] +} + action "Install" { uses = "nuxt/actions-yarn@master" args = "install --frozen-lockfile --non-interactive" } -action "Lint" { - uses = "nuxt/actions-yarn@master" - args = "lint" -} - action "Audit" { uses = "nuxt/actions-yarn@master" - needs = ["Install"] args = "audit" } +action "Lint" { + uses = "nuxt/actions-yarn@master" + needs = ["Install"] + args = "lint" +} + action "Build" { uses = "nuxt/actions-yarn@master" needs = ["Install"]