Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add phi -> unphi -> test pipeline #2929

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/phi-unphi-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Pipeline: eo -> phi -> unphi -> eo -> test"

on:
push:
workflow_dispatch:

jobs:
pipeline:
name: Run pipeline
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: 21

- uses: freckle/stack-action@v5
with:
working-directory: pipeline

- name: Run pipeline
shell: bash
working-directory: pipeline
run: ./run.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ target/
.classpath
.recommenders
.mvn/wrapper/maven-wrapper.jar
.factorypath
.factorypath
.direnv
.
1 change: 1 addition & 0 deletions pipeline/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 3 additions & 0 deletions pipeline/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.stack-work
.data
96 changes: 96 additions & 0 deletions pipeline/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
sets:
- source: ../eo-runtime/src/test/eo/org/eolang/as-phi-tests.eo
yaml: .data/yaml/as-phi-tests.yaml
destination: .data/eo/as-phi-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/bool-tests.eo
yaml: .data/yaml/bool-tests.yaml
destination: .data/eo/bool-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/bytes-tests.eo
yaml: .data/yaml/bytes-tests.yaml
destination: .data/eo/bytes-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/cage-tests.eo
yaml: .data/yaml/cage-tests.yaml
destination: .data/eo/cage-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/cti-test.eo
yaml: .data/yaml/cti-test.yaml
destination: .data/eo/cti-test.eo
- source: ../eo-runtime/src/test/eo/org/eolang/float-tests.eo
yaml: .data/yaml/float-tests.yaml
destination: .data/eo/float-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/goto-tests.eo
yaml: .data/yaml/goto-tests.yaml
destination: .data/eo/goto-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/heap-tests.eo
yaml: .data/yaml/heap-tests.yaml
destination: .data/eo/heap-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/int-tests.eo
yaml: .data/yaml/int-tests.yaml
destination: .data/eo/int-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/memory-tests.eo
yaml: .data/yaml/memory-tests.yaml
destination: .data/eo/memory-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/nan-tests.eo
yaml: .data/yaml/nan-tests.yaml
destination: .data/eo/nan-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/negative-infinity-tests.eo
yaml: .data/yaml/negative-infinity-tests.yaml
destination: .data/eo/negative-infinity-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/nop-tests.eo
yaml: .data/yaml/nop-tests.yaml
destination: .data/eo/nop-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/positive-infinity-tests.eo
yaml: .data/yaml/positive-infinity-tests.yaml
destination: .data/eo/positive-infinity-tests.eo
exclude:
- float-equal-to-nan-and-infinites-is-false-highload
- source: ../eo-runtime/src/test/eo/org/eolang/ram-tests.eo
yaml: .data/yaml/ram-tests.yaml
destination: .data/eo/ram-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/runtime-tests.eo
yaml: .data/yaml/runtime-tests.yaml
destination: .data/eo/runtime-tests.eo
exclude:
- constant-defends-against-side-effects
- source: ../eo-runtime/src/test/eo/org/eolang/rust-tests.eo
yaml: .data/yaml/rust-tests.yaml
destination: .data/eo/rust-tests.eo
enable: false
- source: ../eo-runtime/src/test/eo/org/eolang/seq-tests.eo
yaml: .data/yaml/seq-tests.yaml
destination: .data/eo/seq-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/string-tests.eo
yaml: .data/yaml/string-tests.yaml
destination: .data/eo/string-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/switch-tests.eo
yaml: .data/yaml/switch-tests.yaml
destination: .data/eo/switch-tests.eo
exclude:
- switch-complex-case
- switch-simple-case
# fails on windows
- switch-strings-case
# fails on windows
- switch-with-all-false-cases
# fails on windows
- switch-with-several-true-cases
- source: ../eo-runtime/src/test/eo/org/eolang/try-tests.eo
yaml: .data/yaml/try-tests.yaml
destination: .data/eo/try-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/tuple-tests.eo
yaml: .data/yaml/tuple-tests.yaml
destination: .data/eo/tuple-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/unit-tests.eo
yaml: .data/yaml/unit-tests.yaml
destination: .data/eo/unit-tests.eo
- source: ../eo-runtime/src/test/eo/org/eolang/io/stdout-tests.eo
yaml: .data/yaml/io/stdout-tests.yaml
destination: .data/eo/io/stdout-tests.eo
enable: false
- source: ../eo-runtime/src/test/eo/org/eolang/io/tupled-stdout-test.eo
yaml: .data/yaml/io/tupled-stdout-test.yaml
destination: .data/eo/io/tupled-stdout-test.eo
enable: false
- source: ../eo-runtime/src/test/eo/org/eolang/io/tupled-stdout.eo
yaml: .data/yaml/io/tupled-stdout.yaml
destination: .data/eo/io/tupled-stdout.eo
enable: false
130 changes: 130 additions & 0 deletions pipeline/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions pipeline/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.devshell.url = "github:deemp/devshell/add-interpolate-menu";
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
inherit (pkgs.extend inputs.devshell.overlays.default) devshell;
devShells.default = devshell.mkShell {
commands = {
tools = [
pkgs.stack
];
};
};
in
{
inherit devShells;
}
);
}
Loading
Loading