Skip to content

Commit aa25b74

Browse files
committed
Setup project
1 parent 234f0a2 commit aa25b74

File tree

11 files changed

+6905
-0
lines changed

11 files changed

+6905
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
on: [push]
3+
jobs:
4+
functionality:
5+
name: Functionality
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macos-latest]
10+
python-version: [2.7, 3.6, 3.7, 3.8, pypy2, pypy3]
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Run Meson
19+
uses: ./
20+
with:
21+
action: build
22+
- name: Run Meson
23+
uses: ./
24+
with:
25+
action: test
26+
code:
27+
name: Code
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
- name: Install node
33+
uses: actions/setup-node@v1
34+
with:
35+
node-version: '10.x'
36+
- name: Install dependencies
37+
run: npm install
38+
- name: Run tests
39+
run: npm test

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules/
2+
3+
lib/
4+
5+
logs
6+
*.log
7+
8+
build/Release
9+
10+
*.tsbuildinfo
11+
12+
.npm

__tests__/meson-build.test.ts

Whitespace-only changes.

action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Meson Build
2+
author: BSFishy
3+
description: Run a Meson task during your Actions workflow
4+
runs:
5+
using: 'node12'
6+
main: 'dist/index.js'
7+
branding:
8+
icon: 'arrow-down'
9+
color: 'green'
10+
inputs:
11+
action:
12+
description: The action to run
13+
required: true
14+
directory:
15+
description: The directory to build the project to
16+
required: false
17+
default: 'build'
18+
options:
19+
description: Additional options to pass to Meson
20+
required: false
21+
default: ''

0 commit comments

Comments
 (0)