Migrate CI from TravisCI to GitHub Actions #1004
Reference in New Issue
Block a user
No description provided.
Delete Branch "gh-actions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Migrate from TravisCI to GitHub Actions. Facebook employees can read about this migration here.
CC: @wittgenst
Test Plan:
GitHub Actions CI
@bigfootjon has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@@ -0,0 +1,56 @@
name: CI
We should come up with some best practice here… I almost prefer website deployment being a completely different workflow that only runs on master (so it's obvious at the workflow configuration when it runs, not needing to read this far to find out)
There's no matrix so this is a no-op I believe
@@ -0,0 +10,4 @@
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 8.x
AHHHH Node 8 EOL was last year. Let's at least use 10 (or 12)
@@ -0,0 +25,4 @@
publish_branch: gh-pages
publish_dir: website/public
cname: yogalayout.com
keep_files: true
Why?
@@ -0,0 +42,4 @@
pushd $HOME
git clone --depth 1 https://github.com/facebook/buck.git
cd buck
ant
Oh geez this is building Buck on every change… that's… wow. We probably actually need to do something different here since Buck master is diverging (but let's ignore that for now)
@@ -0,0 +10,4 @@
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 8.x
I just copied the Travis job ¯\_(ツ)_/¯
When I tried upgrading to a more recent version of node it broke the
yarn build
step :(@@ -0,0 +1,56 @@
name: CI
I was trying to avoid writing it out twice, because for PRs it would be nice to know if the website build is broken. I'd have to copy the entire job and any changes to the build process would need to be done in two places.
@@ -0,0 +25,4 @@
publish_branch: gh-pages
publish_dir: website/public
cname: yogalayout.com
keep_files: true
It was in
.travis.yml
:skip-cleanup: true
Ref:
https://docs.travis-ci.com/user/deployment/pages/
https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-keeping-existing-files
@bigfootjon has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@bigfootjon has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@bigfootjon has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@bigfootjon merged this pull request in facebook/yoga@ac7c85c0a6.
Pull request closed