Skip to content

Commit

Permalink
allow tests to run even if previous fails
Browse files Browse the repository at this point in the history
  • Loading branch information
addhyanmalhotra committed Jan 7, 2021
1 parent a2fe233 commit 6b9a831
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions .github/workflows/session_0.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: 'Session 0: Learning Ruby'
name: 'Session 0'

on: [push, pull_request]

jobs:
test-fizz-buzz:
name: 'Test Fizz Buzz task'
session-0:
name: 'Learning Ruby'
runs-on: ubuntu-latest

steps:
Expand All @@ -17,44 +18,16 @@ jobs:
working-directory: session_0
bundler-cache: true

- name: Run fizz_buzz_test
- name: Test Fizz Buzz
working-directory: session_0
run: ruby fizz_buzz_test.rb

test-word-processing:
name: 'Test Word Processing task'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
working-directory: session_0
bundler-cache: true

- name: Run word_processing_test
- name: Test Word Processing
if: ${{ always() }}
working-directory: session_0
run: ruby word_processing_test.rb

test-items:
name: 'Test Items Task'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
working-directory: session_0
bundler-cache: true

- name: Test Item
if: ${{ always() }}
working-directory: session_0
run: ruby item_test.rb

0 comments on commit 6b9a831

Please sign in to comment.