-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,28 @@ | ||
|
||
name: CI | ||
|
||
name: Run Behave Tests | ||
|
||
on: | ||
|
||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: | ||
- main | ||
|
||
workflow_dispatch: | ||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run a one-line script | ||
run: echo hello, world! | ||
|
||
deploy-dev: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: dev | ||
url: 'test.com.br' | ||
needs: build | ||
steps: | ||
- name: Run a one-line script | ||
run: echo Deploy Dev | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
deploy-pdr: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pdr | ||
url: 'test.com.br' | ||
needs: [deploy-dev] | ||
steps: | ||
- name: Run a one-line script | ||
run: echo Deploy Pdr | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Run Behave tests | ||
run: | | ||
behave -i @sua_tag | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#path features | ||
default: | ||
paths: ['./features'] | ||
|
||
tag1: | ||
tags: '@tag1' | ||
paths: ['./features'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Feature: teste | ||
|
||
@tag1 | ||
Scenario: teste | ||
Given que eu esteja na pagina | ||
When faco login usando o documento | ||
|