-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from darkmatter-lang/add-gh-actions
Add gh actions
- Loading branch information
Showing
6 changed files
with
162 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Darkmatter X Community | ||
url: https://twitter.com/i/communities/1727990925480079392 | ||
about: Please ask and answer usage-related questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Bug report | ||
about: Our code behaves incorrectly? | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- | ||
**Double-check** | ||
* Is this *really* a bug? | ||
- If the behavior is documented, but you disagree with it, please do file an issue, but as a "Design consideration," not a "Bug report." | ||
- If you don't understand why something behaves the way it does, consider asking on [Discussions](https://github.com/darkmatter-lang/darkmatter/discussions). | ||
* Is the problem not in some third-party library, not in [Darkmatter](https://github.com/darkmatter-lang/darkmatter/issues)? | ||
- Example: you write for Android, and your code works properly on most devices, but for a couple of them, it fails. Then please direct this to Google and/or the manufacturer of your device. | ||
* Maybe you're using some ancient version, and the problem doesn't happen with the latest releases of the compiler and the library? | ||
--> | ||
|
||
**Describe the bug** | ||
|
||
What happened? What should have happened instead? | ||
|
||
**Provide a Reproducer** | ||
|
||
* If possible, please provide a small self-contained project (or even just a single file) where the issue reproduces. | ||
* If you can't pinpoint the issue, please provide at least *some* project where this reproduces, for example, your production one. If you are not ready to show the project publicly, we are open to discussing the details privately. | ||
* If you really can't provide any code, please do still open an issue. This may prompt other people to chime in with their reproducers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: "Build: ${{ matrix.config.name }} / ${{ matrix.config.platform }}" | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
config: | ||
- { name: "Windows Latest", os: windows-latest, platform: x64 } | ||
- { name: "Ubuntu Latest", os: ubuntu-latest, platform: x64 } | ||
- { name: "macOS 11", os: macos-11, platform: x64 } | ||
- { name: "macOS Latest", os: macos-latest, platform: arm64 } | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up OpenJDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Cache Maven dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/*.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Assemble | ||
run: mvn install | ||
|
||
unit-test: | ||
name: Unit Test | ||
runs-on: ubuntu-latest | ||
needs: [ build ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up OpenJDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Cache Maven dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/*.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Run Unit Test | ||
run: mvn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package me.anthonyw.darkmatter; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class ParserTest { | ||
|
||
} |