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

Create main.yml #5

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
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
60 changes: 60 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Onescript Action
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
uses: otymko/[email protected]
with:
# Version of Onescript to use. Support value: 1.0.21, 1.2.0, 1.3.0, dev
version: "1.8.4"

- name: Install deps
run: |
opm install -l
opm install -l 1bdd

- name: dos2unix convert
run: |
sudo apt install dos2unix -y
dos2unix oscript_modules/1bdd/features/lib/step_definitions/ВыполнениеКоманд.os

- name: Patch 1bdd
run: patch oscript_modules/1bdd/features/lib/step_definitions/ВыполнениеКоманд.os 1bdd.patch

- name: Create ~/bin
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
mkdir -p ~/bin
echo "::add-path::~/bin"

- name: Make ovm
run: |
oscript -make src/cmd/ovm.os ovm.exe
echo -e "#!/bin/sh\nmono ./ovm.exe \"\$@\"" > ~/bin/ovm
chmod +x ~/bin/ovm
ovm

- name: Run tests
run: oscript tasks/coverage.os
2 changes: 1 addition & 1 deletion packagedef
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.Описание("OneScript Version Manager")
.ВерсияСреды("1.0.20")
.ЗависитОт("json")
.ЗависитОт("1commands", "1.3.2")
.ЗависитОт("1commands", "1.3.1")
.ЗависитОт("fluent", "0.6.1")
.ЗависитОт("fs")
.ЗависитОт("tempfiles")
Expand Down
Loading