Skip to content

Commit

Permalink
Create verify.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
potato167 authored Aug 6, 2023
1 parent 29cae3a commit c6499de
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: verify

on: push

jobs:
verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Set up Python
uses: actions/setup-python@v1

- name: Install dependencies
run: pip3 install -U online-judge-verify-helper


# required only if you want to verify Haskell code
- name: Install dependencies (Haskell)
uses: actions/setup-haskell@v1

# required only if you want to verify Java code
- name: Install dependencies (Java)
uses: actions/setup-java@v1
with:
java-version: 11

# required only if you want to verify C# script files
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.101'
- name: Install dependencies (C#)
run: dotnet tool install -g dotnet-script

# required only if you want to verify Go code
- name: Install dependencies (Go)
uses: actions/setup-go@v2

# required only if you want to verify Ruby code
- name: Install dependencies (Ruby)
uses: actions/setup-ruby@v1

# required only if you want to verify Nim code
- name: Install dependencies (Nim)
run: sudo apt install nim

- name: Set up Rust (1.42.0)
uses: actions-rs/toolchain@v1
with:
toolchain: 1.42.0-x86_64-unknown-linux-gnu
default: true
profile: minimal

# required by cargo-udeps
- name: Set up Rust (nightly)
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-x86_64-unknown-linux-gnu
default: true
profile: minimal

# required only if you set `languages.rust.list_dependencies_backend.kind` to `"cargo-udeps"`
- name: Install cargo-udeps for Rust
uses: actions-rs/[email protected]
with:
crate: cargo-udeps
use-tool-cache: true

- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YUKICODER_TOKEN: ${{ secrets.YUKICODER_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}
run: oj-verify all

0 comments on commit c6499de

Please sign in to comment.