Skip to content

Commit

Permalink
workflow smoke teste
Browse files Browse the repository at this point in the history
  • Loading branch information
GCarin1 committed Nov 13, 2023
1 parent a93da0a commit e383045
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 30 deletions.
49 changes: 19 additions & 30 deletions .github/workflows/main.yml
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
7 changes: 7 additions & 0 deletions behave-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#path features
default:
paths: ['./features']

tag1:
tags: '@tag1'
paths: ['./features']
1 change: 1 addition & 0 deletions features/teste.feature
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
Expand Down

0 comments on commit e383045

Please sign in to comment.