Skip to content

Commit

Permalink
adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Jun 29, 2024
1 parent 4cfa0ac commit 35ca2fd
Show file tree
Hide file tree
Showing 21 changed files with 144 additions and 298 deletions.
44 changes: 0 additions & 44 deletions .github/.travis.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/Docs.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

27 changes: 0 additions & 27 deletions .github/config.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/hooks/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/hooks/pre-commit

This file was deleted.

8 changes: 0 additions & 8 deletions .github/labeler.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/release-drafter.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/stale.yml

This file was deleted.

13 changes: 6 additions & 7 deletions .github/workflows/gem-build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Build Ruby Gem

on:
push:
branches:
- main
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '2.7.4', '3.0', '3.1', '3.2' ]
ruby-version: [ '3.1', '3.2' ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
Expand All @@ -40,10 +43,6 @@ jobs:
run: |
gem install type-on-strap
gem install jekyll-theme-type-on-strap
- name: GPR
continue-on-error: true
run: |
gem install type-on-strap --version "2.4.8" --source "https://rubygems.pkg.github.com/sylhare"
- name: Build with Docker
continue-on-error: true
run: |
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/jekyll-build.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/labeler.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/publish-build.yml

This file was deleted.

36 changes: 24 additions & 12 deletions .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
name: Workflow Test
name: Projects test

on:
workflow_run:
workflows: ["Jekyll build"]
branches: ["master"]
types:
- completed
push:
pull_request:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
game_of_life:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

# setup node
steps:
- uses: actions/checkout@v3
- name: Hello world
run: echo "Hello world"
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run:
cd assets/js/projects/game_of_life
npm install

- name: Run tests
run: npm test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ jekyll-theme-type-on-strap.gemspec
*copy.md
test/*
/type-on-strap*/*

node_modules
1 change: 1 addition & 0 deletions _portfolio/game_of_life.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: post
title: Conway's Game of Life
img: "assets/img/portfolio/goes-look-angles.png"
date: June 2024
tags: [fun]
---
Expand Down
3 changes: 3 additions & 0 deletions assets/js/projects/game_of_life/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
Loading

0 comments on commit 35ca2fd

Please sign in to comment.