Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Aug 15, 2022
1 parent fbed2c5 commit c62e22d
Showing 1 changed file with 60 additions and 0 deletions.
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: dev

- 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

0 comments on commit c62e22d

Please sign in to comment.