Skip to content

Commit

Permalink
Switch to using reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan2909 authored Nov 20, 2022
1 parent 9d057d5 commit 8f89e15
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: CI

on:
Expand All @@ -6,28 +7,8 @@ on:
paths-ignore: ["**.md", ".vscode/**", "docs/**", ".github/workflows/pages.yml"]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["14.x", "16.x"]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: |
sudo apt-get install xvfb
sudo npm install -g pxt
npm install
- name: pxt
run: |
pxt target microbit
pxt install
pxt build
pxt test
uses: SNORE-Project/.github/.github/workflows/build.yml@main

0 comments on commit 8f89e15

Please sign in to comment.