Skip to content

Commit

Permalink
move GA workflow files to top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiosilveira committed Nov 30, 2023
1 parent fbfed48 commit 74d5b76
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 69 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix: { dir: ["day-11", "day-13"] }
matrix:
{
dir:
["./advents-of-code/2022/day-11", "./advents-of-code/2022/day-13"],
}
defaults:
run:
working-directory: ./${{ matrix.dir }}
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Continuous Integration

on:
push:
branches: ["main"]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix: { ruby-version: ["3.2.2"], dir: ["./hacker-rank"] }
env:
CONSTRAINT_ENFORCEMENT_ENABLED: "enabled"

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler: "Gemfile.lock"
bundler-cache: true
- name: Lock bundle
run: bundle lock --add-platform x86_64-linux

- name: Run tests
run: bundle exec rake
39 changes: 39 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Continuous Integration - Rust

on:
push:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
{
dir:
[
"./advents-of-code/2022/day-01",
"./advents-of-code/2022/day-02",
"./advents-of-code/2022/day-03",
"./advents-of-code/2022/day-04",
"./advents-of-code/2022/day-05",
"./advents-of-code/2022/day-06",
"./advents-of-code/2022/day-07",
"./advents-of-code/2022/day-08",
"./advents-of-code/2022/day-09",
"./advents-of-code/2022/day-10",
],
}
defaults:
run:
working-directory: ${{ matrix.dir }}

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
39 changes: 0 additions & 39 deletions advents-of-code/2022/.github/workflows/rust.yml

This file was deleted.

29 changes: 0 additions & 29 deletions hacker-rank/.github/workflows/ruby.yml

This file was deleted.

0 comments on commit 74d5b76

Please sign in to comment.