This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
Add code breaker test data to wiki #29
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
name: CI for ICS4U Culminating Project Mastermind | |
on: | |
push: | |
branches: ["main"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run unit tests | |
run: | | |
cd culminating-mastermind | |
./gradlew test | |
gh-pages: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.4.1" | |
bundler-cache: true | |
cache-version: 0 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build with Jekyll | |
run: | | |
cd culminating-mastermind/docs | |
bundle install | |
bundle exec jekyll build | |
env: | |
JEKYLL_ENV: production | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: culminating-mastermind/docs/_site | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |