Skip to content

Commit 2ef103a

Browse files
add 2018 workflow
1 parent eb21222 commit 2ef103a

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/2018-ruby.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 2018-ruby
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
paths:
8+
- 2018/ruby/**
9+
10+
defaults:
11+
run:
12+
working-directory: ./2018/ruby
13+
14+
jobs:
15+
tests:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Determine ruby version
20+
id: determine-ruby-version
21+
run: |
22+
VERSION=$(cat .ruby-version)
23+
echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ steps.determine-ruby-version.outputs.VERSION }}
28+
bundler-cache: true
29+
- name: Install gems
30+
run: |
31+
gem update bundler
32+
bundle
33+
- name: Run tests
34+
run: bundle exec rspec

2018/ruby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Advent of Code
1+
# Advent of Code
22

33
Solutions for [Advent of Code 2018](https://adventofcode.com/2018) done in Ruby
44

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy