Skip to content

feat(2023): add day 8 part 1 #419

feat(2023): add day 8 part 1

feat(2023): add day 8 part 1 #419

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
# Cancel previously running workflows
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
typescript:
name: Test TypeScript solutions
runs-on: ubuntu-latest
strategy:
matrix:
year: ['2023']
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Run tests
run: |
cd typescript/$YEAR
bun install
bun test
env:
YEAR: ${{ matrix.year }}
CI: true
javascript:
name: Test JavaScript solutions
runs-on: ubuntu-latest
strategy:
matrix:
year: ['2022']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Run tests
run: |
cd javascript/$YEAR
npm ci
npm test
env:
YEAR: ${{ matrix.year }}
CI: true
rescript:
name: Test ReScript solutions
runs-on: ubuntu-latest
strategy:
matrix:
year: ['2015', '2018', '2019', '2020']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Run tests
run: |
cd rescript/$YEAR
npm ci
npm run build
npm test
env:
YEAR: ${{ matrix.year }}
CI: true
rust:
name: Test Rust solutions
runs-on: ubuntu-latest
strategy:
matrix:
year: ['2015', '2016', '2019', '2020', '2021', '2022', '2023']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust (nightly)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
override: true
- name: Run linting
run: |
cd rust/$YEAR
cargo clippy --all-targets --all-features -- -D warnings
env:
YEAR: ${{ matrix.year }}
- name: Run tests
run: |
cd rust/$YEAR
cargo test --locked
env:
YEAR: ${{ matrix.year }}
go:
name: Test Go solutions
runs-on: ubuntu-latest
strategy:
matrix:
year: ['2022']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.0'
- name: Run tests
run: |
cd go/$YEAR
go test ./...
env:
YEAR: ${{ matrix.year }}