Browse Source

setup workflow

pull/2/head
James Fenn 1 year ago
parent
commit
764af3f4ed
2 changed files with 28 additions and 0 deletions
  1. +26
    -0
      .github/workflows/dub.yml
  2. +2
    -0
      dub.selections.json

+ 26
- 0
.github/workflows/dub.yml View File

@@ -0,0 +1,26 @@
name: Dlang Package

on:
push:
paths:
- 'source/*'
- '*.json'
pull_request:
paths:
- 'source/*'
- '*.json'

jobs:
test:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: "Setup Dlang"
run: |-
sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
sudo apt-get update && sudo apt-get install dmd-compiler dub

- name: "Test"
run: dub test

+ 2
- 0
dub.selections.json View File

@@ -1,8 +1,10 @@
{
"fileVersion": 1,
"versions": {
"dlibgit": "0.50.6",
"dunit": "1.0.15",
"inilike": "1.1.0",
"libgit2": "0.20.2+0.20.0",
"painlessjson": "1.4.0",
"painlesstraits": "0.3.0"
}


Loading…
Cancel
Save