Skip to content

Commit

Permalink
inicializando wollok
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanrosa1 committed Apr 26, 2024
1 parent 3aefdfb commit a1a946b
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: build

on: [push, pull_request]
jobs:
wollok-ts:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: |
wget -O wollok-ts-cli https://github.com/uqbar-project/wollok-ts-cli/releases/latest/download/wollok-ts-cli-linux-x64
chmod a+x ./wollok-ts-cli
./wollok-ts-cli test --skipValidations -p ./
shell: bash
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Me llamo Juan, tengo 19 años, termine el secundario en 2022. Me gusta la carrera pero no tanto programar. Me dedico a la venta de productos quimicos en escobar/garin y otro lugares de la zona.


## example

TODO

9 changes: 9 additions & 0 deletions example.wlk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
object pepita {
var energy = 100

method energy() = energy

method fly(minutes) {
energy = energy - minutes * 3
}
}
Empty file added log/wollok.log
Empty file.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "2024-presentacion-Juanrosa1",
"version": "1.0.0",
"wollokVersion": "4.0.0",
"author": "juani",
"license": "ISC"
}
9 changes: 9 additions & 0 deletions testExample.wtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import example.pepita

describe "group of tests for pepita" {

test "pepita has initial energy" {
assert.equals(100, pepita.energy())
}

}

0 comments on commit a1a946b

Please sign in to comment.