Skip to content

Commit

Permalink
Clean up CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjacobs committed Feb 28, 2022
1 parent c01e143 commit a6ddf7f
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/main.yml
@@ -1,4 +1,4 @@
name: run-tests
name: build-and-test
on: [push]
jobs:
build:
Expand All @@ -11,9 +11,18 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '2.7.18' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- run: npm install
- run: gem install jsduck --user-install
- run: echo "${HOME}/.gem/ruby/2.7.0/bin" >> ${GITHUB_PATH}
- run: which jsduck
- run: npm run build
- run: npm run test

- name: npm install
run: npm install

- name: install jsduck
run: gem install jsduck --user-install # Need user install because system dir is not accessible

- name: add jsduck to $PATH var
run: echo "${HOME}/.gem/ruby/2.7.0/bin" >> ${GITHUB_PATH} # This is how to add to $PATH on GitHub's runners

- name: build
run: npm run build

- name: test
run: npm run test

0 comments on commit a6ddf7f

Please sign in to comment.