Skip to content

Commit

Permalink
autobuild in ci
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Rose <dan@digilabs.io>
  • Loading branch information
rotu committed Sep 6, 2020
1 parent 1532362 commit 0136f93
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10,885 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Build"
on: push
jobs:
test_ros:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: |
npm ci
npm run build
- run: |
git checkout --detach
git config user.email "ros-tooling@users.noreply.github.com"
git config user.name "ROS Tooling [bot]"
git add --force dist
git commit --no-verify -m "$commitmsg" --only dist
git push origin --no-verify HEAD:refs/tags/build/${{github.sha}}
env:
commitmsg: "Autobuild\n\nGitHub-Workflow: ${{ github.workflow }}"
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Test action-ros-ci"
on:
pull_request:
paths: ['.github/**', 'dist/**']
push:
branches:
- master
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
__tests__/runner/*

node_modules/

# Although we *do* expect dist to get updated, there's no need for the user to commit it.
# We can do that with the github "build" workflow.
/dist/

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
Expand Down
Loading

0 comments on commit 0136f93

Please sign in to comment.