Skip to content

Commit 45ddbf7

Browse files
committed
Save artifacts
1 parent 6076882 commit 45ddbf7

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ jobs:
3636
run: yarn run test:cypress:run:report
3737
- name: test-unit
3838
run: yarn run test:unit
39+
- name: archive coverage artifacts
40+
uses: actions/upload-artifact@v2
41+
with:
42+
path: |
43+
nyc
3944
- name: coverage
4045
run: yarn run test:coverage
4146
- name: eslint
4247
run: yarn run lint
4348

4449
# This job is an example of continious deployment
45-
# It job above succeeds it will update your production site.
50+
# It job above succeeds it will update your production site.
4651
# Be aware, in this example this job updates the server on pull request, so either move it to another worflow, either remove pull request trigger above
4752
deploy:
4853
runs-on: ubuntu-latest
@@ -63,7 +68,12 @@ jobs:
6368
- name: install npm dependencies
6469
run: yarn --frozen-lockfile
6570
- name: build static files
66-
run: yarn build:prod
71+
run: yarn build:prod:no-progress
72+
- name: archive static files
73+
uses: actions/upload-artifact@v2
74+
with:
75+
path: |
76+
dist
6777
- name: copy static files to destination server
6878
uses: garygrossgarten/github-action-scp@release
6979
with:

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ yarn run build:prod
9494
- [.nycrc.json](.nycrc.json) is a [configuration](https://github.com/istanbuljs/nyc#configuration-files) for istanbul code coverage. It can customize reports formats, coverage percentage and other build related things.
9595
- [.stylelintrc](.stylelintrc) is a [configuration](https://stylelint.io/user-guide/rules) for css linting
9696
- [.drone.yml](.drone.yml) is a [configuration](https://docker-runner.docs.drone.io/configuration/overview/) file for Drone CI.
97+
- [.github/workflows/main.yml](.github/workflows/main.yml) is a [configuration](https://docs.github.com/en/free-pro-team@latest/actions/quickstart) file for Github Actions.
9798
- [.eslintrc.json](.eslintrc.json) is a [configuration](https://eslint.org/docs/user-guide/configuring) for ts linting
9899
- [.mocharc.json](.mocharc.json) is a [configuration](https://mochajs.org/#configuring-mocha-nodejs) for testing library mocha (deprecated mocha.opts)
99100
- [cypress.json](cypress.json) is a [configuration](https://docs.cypress.io/guides/references/configuration.html#Global) for cypress e2e testing
@@ -424,7 +425,13 @@ Typescript is compiled via babel, this means that it doesn't have typechecks, th
424425
- [stylelint](https://github.com/stylelint/stylelint) linter for css files.
425426

426427
### Continuous integration
427-
- Project supports with [DroneCI](https://docs.drone.io/) and [TravisCI](https://travis-ci.org/) pipelines out of the box.
428+
This project has support for continuous integration servers:
429+
430+
- Project supports with [DroneCI](https://docs.drone.io/).
431+
- [TravisCI](https://travis-ci.org/) pipelines out of the box.
432+
- [Github actions](https://docs.github.com/en/free-pro-team@latest/actions). Config
433+
434+
You don't need to have all of them. So I recommend leave only 1. I would personally use droneci if I want it to be on my server. Or github actions for serverless.
428435

429436
### Tips
430437

@@ -463,7 +470,6 @@ import {defaultModule} from "@/store/default"; // this is a single import with a
463470
- if build process is killed or get stack that could be because of out of memory. The only option is to build frontend on machine with more memory and copy files
464471

465472
## TODO
466-
- https://docs.github.com/en/free-pro-team@latest/actions/guides/storing-workflow-data-as-artifacts
467473
- https://github.com/cypress-io/code-coverage/pull/332
468474
- ![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/akoidan/vue-webpack-typescript)
469475
- @for sass loops doesn't work in linter https://github.com/AleshaOleg/postcss-sass/issues/53

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"license": "MIT",
44
"scripts": {
55
"build:prod": "webpack --progress --config build/webpack.config.prod.js",
6+
"build:prod:no-progress": "webpack --config build/webpack.config.prod.js",
67
"build:test": "APP_VERSION=app-v1 APP_TEST=true webpack --progress --config build/webpack.config.prod.js",
78
"build:test:no-progress": "APP_VERSION=app-v1 APP_TEST=true webpack --config build/webpack.config.prod.js",
89
"build:file": "APP_PUBLIC_PATH='./' APP_FILE_MODE=true webpack --progress --config build/webpack.config.prod.js",

0 commit comments

Comments
 (0)