Skip to content

Commit

Permalink
Referenced reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kuniss committed Jan 3, 2024
1 parent 2f39e92 commit fb4287e
Showing 1 changed file with 4 additions and 54 deletions.
58 changes: 4 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,12 @@
name: Build on Push & PR
name: CI
on: [push, pull_request]

jobs:
build:
name: Build Gamma
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-1.33.0

- name: Run build
run: |
dub build
uses: ./.github/workflows/build.yml

test:
name: Test Gamma
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout source codet
uses: actions/checkout@v3

- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-2.103.1

- name: Run tests
run: |
dub test --config=example
uses: ./.github/workflows/test.yml

check:
name: Check Style
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-2.103.1

- run: |
dub fetch [email protected]
- name: Check style
run: |
dub run dscanner -- --styleCheck src test
uses: ./.github/workflows/check.yml

0 comments on commit fb4287e

Please sign in to comment.