Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
Add badges of Build and Test pipeline in Readme (#13)
Browse files Browse the repository at this point in the history
* Extract build action from tests actions

* Add badges of Build and Test pipeline in Readme

* Replace action version 1.0.1 to v1

Co-authored-by: alexesprit <[email protected]>
  • Loading branch information
shiipou and alexesprit authored Mar 23, 2020
1 parent 0cf69a9 commit c1317f1
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Build TS
name: Build

on:
push:
paths-ignore:
- '**.md'
- 'dist/**.js'
pull_request:
paths-ignore:
- '**.md'
- 'dist/**.js'

jobs:
run:
name: Run
build:
name: Build GitHub Action
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,7 +26,6 @@ jobs:
- name: npm install
run: npm install


- name: Clean old dist/
run: |
rm -r dist/
Expand All @@ -43,41 +44,3 @@ jobs:
git commit -m "WORKFLOW_COMMIT - update dist/index.js [skip ci]"
git push
continue-on-error: true

- name: Set up V version master
uses: ./
with:
v-version: latest
id: v
- name: Test V is present
run: v version

run-macos:
name: Run MacOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up V version master
uses: ./
with:
v-version: latest
id: v

- name: Test V is present
run: v version

run-windows:
name: Run Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up V version master
uses: ./
with:
v-version: latest
id: v

- name: Test V is present
run: v version
55 changes: 55 additions & 0 deletions .github/workflows/test_github_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Tests

on:
push:
paths:
- 'dist/**.js'
pull_request:
paths:
- 'dist/**.js'

jobs:
test-ubuntu:
name: Test with ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up V version master
uses: ./
with:
v-version: latest
id: v

- name: Test V is present
run: v version

test-macos:
name: Test on MacOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up V version master
uses: ./
with:
v-version: latest
id: v

- name: Test V is present
run: v version

test-windows:
name: Test on Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up V version master
uses: ./
with:
v-version: latest
id: v

- name: Test V is present
run: v version
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# setup-vlang-action
# Setup V environment ![Latest version][githubBadge] ![Build][Build] ![Tests][Tests]

GitHub Action that allows you to compile V programs without the use of Docker (because it's very slow).

[githubBadge]: https://img.shields.io/github/v/release/nocturlab/setup-vlang-action
[Build]: https://github.com/nocturlab/setup-vlang-action/workflows/Build/badge.svg
[Tests]: https://github.com/nocturlab/setup-vlang-action/workflows/Tests/badge.svg

## Usage
You just have to setup your workflow like this:

Expand All @@ -21,7 +26,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set up V version 0.1.24
uses: nocturlab/setup-vlang-action@1.0.0
uses: nocturlab/setup-vlang-action@v1
with:
v-version: 0.1.24
id: v
Expand Down

0 comments on commit c1317f1

Please sign in to comment.